texy! 03/07/2015
For static Texy! use filter:
public function templatePrepareFilters($template) { parent::templatePrepareFilters($template); $texy = new Texy(); $template->registerFilter(callback($texy, 'process')); } For dynamic Texy! use helper:
protected function createTemplate($class = NULL) { $template = parent::createTemplate($class); $texy = new Texy(); $template->registerHelper('texy', callback($texy, 'process')); return $template; }
For static Texy! use filter:
public function templatePrepareFilters($template)
{
parent::templatePrepareFilters($template);
$texy = new Texy();
$template->registerFilter(callback($texy, 'process'));
}
For dynamic Texy! use helper:
protected function createTemplate($class = NULL)
{
$template = parent::createTemplate($class);
$texy = new Texy();
$template->registerHelper('texy', callback($texy, 'process'));
return $template;
}