$templateDirectory
$templateDirectory :
Base class for a template engine.
This does nothing and must be derived. See myMVC_SmartyEngine for a template engine using Smarty (http://www.smarty.net/)
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'). |