Method |
Description |
|
__construct ( ConfigObject $config ) |
Base constructor. |
|
assign ( string $var, mixed $value ) : void |
Assign a variable and its value into the template engine. |
|
fetch ( string $template, array $parameters = [] ) : string |
Fetch the template from the given location, parse it and return the output. |
|
getCacheDir ( ) : string |
Returns the current cache dir. |
|
getCompileDir ( ) : string |
Returns the current compile dir. |
|
getForceCompile ( ) : boolean |
Returns the current value of force_compile flag. |
|
getMergeCompiledIncludes ( ) : boolean |
Returns the current value of inheritance_merge_compiled_includes flag. |
|
getTemplateDir ( ) : string |
Returns the current template dir. |
|
registerExtensions ( ) |
Gets the registered Smarty extensions that have been registered over the ServiceManager and
assigns them to current Smarty instance. |
|
registerPlugin ( Plugin $plugin ) : void |
Register a plugin for the template engine. |
|
render ( string $template, array $parameters = [] ) : void |
Fetch the template from the given location, parse it and output the result to the browser. |
|
setCacheDir ( string $cacheDir ) |
Set Smarty cache dir. |
|
setCompileDir ( string $compileDir ) |
Set Smarty compile dir. |
|
setForceCompile ( boolean $forceCompile ) |
Force to re-compile the templates on every refresh. |
|
setMergeCompiledIncludes ( boolean $mergeCompiledIncludes ) |
Force to re-compile the templates on every refresh. |
|
setTemplateDir ( string $templateDir ) : void |
Root path where the templates are stored. |
|