Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Smarty wrapper provides smarty template engine for CONTENIDO Backend and Frontend.

After installation of plugin smarty template can be used in CONTENIDO Modules or Plugins.

//get smarty frontend or backend template object via singleton pattern
$tplFrontend = cSmartyBackend::getInstance();
$tplBackend = cSmartyFrontend::getInstance();

//assign some data and display template
$tplFrontend->assign("some_value_key", $some_value);
$tplFrontend->display("templates/some_template.tpl");


  • No labels