Main config file compiler class

package Smarty
subpackage Config

 Methods

Initialize compiler

__construct(\Smarty $smarty) 

Parameters

$smarty

\Smarty

base instance

Method to compile a Smarty template.

compileSource(\Smarty_Internal_Config $config) : bool

Parameters

$config

\Smarty_Internal_Config

config object

Returns

booltrue if compiling succeeded, false if it failed

display compiler error messages without dying

trigger_config_file_error(string $args) 

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

Parameters

$args

string

individual error message or null

 Properties

 

$config : \Smarty_Internal_Config
 

$config_data : array
 

$lex : object
 

$parser : object
 

$smarty : \Smarty