14 if (!defined(
'IN_PEEL')) {
18 require dirname(__FILE__) . DIRECTORY_SEPARATOR .
'Template.php';
34 private $context = array();
39 $this->context = $context;
42 public function assign($tpl_var, $value = null)
44 $this->context[$tpl_var] = $value;
49 $this->sit->display($this->context);
55 return $this->sit->render($this->context);
assign($tpl_var, $value=null)
assigns Template variable(s)
fetch()
fetches a rendered template and returns the outoput
display()
displays a Template
__construct($sit, $context)