>> $template = new PHPTAL($this->_viewDir . DS . $fileName);
>> $template->set($this->_viewVars);
> Another thing that IMHO should be considered is that PHPTAL should
> implement ArrayAccess so you could do
> $template['menu'] = $menu;
> Would a patch for this be accepted?

Sorry, no. That would duplicate $template->menu = $menu syntax, which works 

I agree about setting all variables in one call, but I'd add separate method 
for it (setAll?)

regards, Kornel

PHPTAL mailing list

Reply via email to