Hi matthew,
I added the line you said, and the layout is switched, but
unfortunatelly for all modules, so also the default module is rendered
with the admin layout. Any advice?

Sergio Rinaudo





> Date: Thu, 7 May 2009 16:18:44 -0400
> From: [email protected]
> To: [email protected]
> Subject: Re: [fw-general] ZF1.8 Switching layouts between modules.
> 
> -- Sergio Rinaudo <[email protected]> wrote
> (on Thursday, 07 May 2009, 08:54 PM +0200):
> > I've almost completed to implement all my past work in the new
> > Zend_Application, I still have the problem on how switch layouts between
> > modules.  I noticed here you can specify this in the configuration ini file:
> > 
> > http://framework.zend.com/manual/en/zend.application.available-resources.html#
> > zend.application.available-resources.modules.configExample
> > 
> > but if I add this line on my ini
> > 
> > admin.resources.layout.layout = "admin"
> > 
> > I get the error
> > 
> > Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with
> > message 'Resource matching "frontcontroller" not found' in
> 
> I know what's happening here.
> 
> The layout resource has this:
> 
>     $this->getBootstrap()->bootstrap('FrontController');
> 
> The problem is that your _module_ bootstrap doesn't have the resources
> that the _application_ bootstrap had -- and so it's finding no matching
> resource to bootstrap.
> 
> One workaround is to add this to your configuration:
> 
>     admin.resources.frontController[] = 
> 
> This will grab and return the front controller singleton, which should
> work for these purposes.
> 
> -- 
> Matthew Weier O'Phinney
> Project Lead            | [email protected]
> Zend Framework          | http://framework.zend.com/

_________________________________________________________________
Resta in contatto con gli amici, comunica con Messenger!
http://messenger.it/cominciaAcomunicare.aspx

Reply via email to