$lexer_class
$lexer_class : string
Lexer class name
Main config file compiler class
$smarty : \Smarty
Smarty object
$template : \Smarty_Internal_Template
Smarty object
__construct(string $lexer_class, string $parser_class, \Smarty $smarty)
Initialize compiler
string | $lexer_class | class name |
string | $parser_class | class name |
\Smarty | $smarty | global instance |
compileTemplate(\Smarty_Internal_Template $template) : boolean
Method to compile Smarty config source.
\Smarty_Internal_Template | $template |
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 expected tokens. If parameter $args contains a string this is used as error message
string | $args | individual error message or null |