[Solar-talk] stack error

Jeff Surgeson solar at 3hex.com
Thu Mar 22 11:43:59 PDT 2007


On Thursday 22 March 2007 19:28, Rodrigo Moraes wrote:
> On 3/22/07, Jeff Surgeson wrote:
> > Do you have a quick fix :-)
>
> Can I? This is quick. :)
>
> The quick solution is - add this to your app (I used a hardcoded
> vendor name - you can borrow the logic from the the current page
> controller to make it dynamic):
>
>     protected function _setLayoutTemplates($view)
>     {
>         parent::_setLayoutTemplates($view);
>
>         $path = str_replace('_', DIRECTORY_SEPARATOR, 'Vendor_App_Layout');
>
>         $view->addTemplatePath($path);
>     }
>
> Solar_App_Layout doesn't exist anymore because it was moved to
> Solar_App_Base_Layout. It makes sense - all layout dirs are now
> namespaced according to an app controller. So there are some ways you
> can add Vendor_App_Layout to the stack, or maybe you shouldn't and
> instead use Vendor_App_Base_Layout, and extend all your apps from
> Vendor_App_Base.

I think this is the better alternative to the quick fix, cheers

> I hope this helps.

Most certainly does, thank you! :D

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the solar-talk mailing list