Tuesday 12 December 2006 6:27:22 am
Hi I have made an extention foo with a template xxx.tpl. When I go to url: domain.com/foo/xxx the template xxx.tpl works great. Then I make an override, say for node/view/full.tpl with matchfile xxx.tpl. BUT this is not working. The debug message says Unknown template variable 'resultArray' in namespace. In extention code I have:
$tpl->setVariable( 'resultArray', $result_array );
# AND
$Result = array();
$Result['content'] =& $tpl->fetch( 'design:xxx.tpl' );
Do I have to define / import the resultArray variable some other way when overriding the template xxx.tpl ? The template works great when using the direct url(domain.com/foo/xxx)
Regards, Guy Brun
|