14 if (!defined(
'IN_PEEL')) {
40 public static function create($type, $templadeDir, $forceCompile =
false, $debugging =
false)
44 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR .
'SmartyEngine.php';
45 $e =
new SmartyEngine($templadeDir, $forceCompile, $debugging);
50 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR .
'TwigEngine.php';
51 $e =
new TwigEngine($templadeDir, $forceCompile, $debugging);
74 abstract public function assign($tpl_var, $value = null);
81 abstract public function display($template);
89 abstract public function fetch($template);
foreach(array('date1', 'date2', 'type', 'renewals', 'width') as $item) $data
static create($type, $templadeDir, $forceCompile=false, $debugging=false)
Creates EngineTpl adapter of specified type.
fetch($template)
fetches a rendered template and returns the outoput
createTemplate($template, array $data=null)
This creates a template object which later can be rendered by the display or fetch.
assign($tpl_var, $value=null)
assigns global Template variable(s)
display($template)
displays a Template
getName()
Returns created adapter type name.