Forums / Developer / pass variable from php to template / Comment48868
Nicolas Lescure
Tuesday 18 December 2007 12:20:08 am
Hi,
You don't have to use a redirection in a template operator.
Try this :
function modify(&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$operatorValue, &$namedParameters) { switch ($operatorName) { case 'tempalte_operator_name': $operatorValue = 'the content you want in your template'; break; } }
You can also download other extensions to help you : http://ez.no/developer/contribs/template_plugins