[Solar-talk] stack error
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Mar 22 10:28:11 PDT 2007
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 hope this helps.
rodrigo
More information about the solar-talk
mailing list