$templateDirectory
$templateDirectory :
Template engine for Views, using Smarty (http://www.smarty.net/)
This does nothing and must be derived. See myMVC_SmartyEngine for a template engine using Smarty (http://www.smarty.net/)
__construct(string $templateDirectory, string $compileDirectory)
Constructor.
string | $templateDirectory | The full path of the directory in which the templates are saved |
string | $compileDirectory | The full path of a directory used to compile the Smarty-templates. WARNING: it must be writeable from the webserver's user! |
registerFunction(string $name, mixed $func)
Register a function to be called from template
string | $name | The name of the function (in template!!) |
mixed | $func | The name function or method (method in the format class::method). Also accepted in the format array('class', 'method'). |
registerModifier(string $name, mixed $func)
Register a modifier to be called from template
string | $name | The name of the modifier (in template!!) |
mixed | $func | The name function or method (method in the format class::method) Also accepted in the format array('class', 'method'). |