Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After installation of plugin smarty templates can be used in CONTENIDO modules or plugins.

 

Example

Code Block
languagephp
//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");

Classes

NameDesctription
cSmartyBackendThis class contains smarty backend logic
Contenido_SmartyWrapper 
cSmartyWrapper 
SmartyCore smarty class
SmartyBCCore smarty class
Info
titleIncomplete

Please describe the implemented classes and the functionality to get a global client template. Also hold in mind, that the wrapper in modules (and plugins?) resolves the requested template path to the specific template folder.