Excerpt |
---|
The Smarty wrapper provides |
...
a wrapper interface to use the Smarty template engine for CONTENIDO Backend and Frontend. |
After installation of plugin smarty template templates can be used in CONTENIDO Modules modules or Pluginsplugins.
Example
Code Block |
---|
|
//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
Name | Desctription |
---|
cSmartyBackend | This class contains smarty backend logic, this class should be used in CONTENIDO backend for the core implementation |
cSmartyWrapper | Wrapper class fot the smarty templating engine |
Smarty | Core smarty class |
SmartyBC | Core smarty class |
cSmartyFrontend | This class contains smarty frontend logic, this class should be used in modules, plugins for the frontend output |
Info |
---|
|
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. |