$lex
$lex : object
Lexer object
Main config file compiler class
$smarty : \Smarty
Smarty object
$config : \Smarty_Internal_Config
Smarty object
__construct(\Smarty $smarty)
Initialize compiler
\Smarty | $smarty | base instance |
compileSource(\Smarty_Internal_Config $config) : boolean
Method to compile a Smarty template.
\Smarty_Internal_Config | $config | config object |
true if compiling succeeded, false if it failed
trigger_config_file_error(string $args = null)
display compiler error messages without dying
If parameter $args is empty it is a parser detected syntax error. In this case the parser is called to obtain information about exspected tokens.
If parameter $args contains a string this is used as error message
string | $args | individual error message or null |