[Solar-talk] helper stack
Rodrigo Moraes
rodrigo.moraes at gmail.com
Tue Aug 29 03:54:44 PDT 2006
On 8/28/06, Paul M Jones wrote:
> The method _setViewLayout() rides to the rescue! ;-) In your app,
> override it like this:
>
> protected function _setViewLayout($view)
> {
> // change the view object over to layouts
> $view = parent::_setViewLayout($view);
>
> // now add our own stuff
> $view->addTemplatePath($this->layout_path);
>
> // done!
> return $view;
> }
Hm, I think we found a bug! Just overriding it gives a fatal error:
Call to a member function addTemplatePath() on a non-object... because
Solar_Controller_Page:: _setViewLayout() currently returns void. It
misses a "return $view"; add it and the solution will work perfectly.
Thanks a lot.
rodrigo
More information about the solar-talk
mailing list