Yes, I am aware of that. I think the best approach will be to specify for each module a bootstrap (if there is more then one module and a modules directory was set) otherwise just use the old way. If it will be possible it will be even better to have a main application bootstrap and each module will have a bootstrap file. That way common things will be called in the main bootstrap and overridden by each module separately by it's bootstrap.
On Thu, May 7, 2009 at 3:01 PM, Tim Brayshaw <[email protected]> wrote: > On 7 May 2009, at 12:11, Erwin Toze wrote: > > in /application/Bootstrap.php: >> class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { >> protected function _initView() >> { >> Zend_Layout::startMVC(array('layoutPath' => >> '../application/layouts')); >> } >> } >> >> >> in /application/modules/default/Bootstrap.php: >> class Default_Bootstrap extends Zend_Application_Module_Bootstrap { >> protected function _initView() >> { >> Zend_Layout::startMVC(array('layout' => 'default')); >> } >> } >> >> >> in /application/modules/admin/Bootstrap.php: >> class Admin_Bootstrap extends Zend_Application_Module_Bootstrap { >> protected function _initView() >> { >> Zend_Layout::startMVC(array('layout' => 'admin')); >> } >> } >> >> so i expected to have different layout when i go to >> http://localhost/ //default layout >> and >> http://localhost/admin/ //admin layout >> >> but wherever i go i always have the admin layout!! >> >> does someone have a solution? did i do something wrong? >> > > One problem could be that the bootstrap class (Default_Bootstrap) for the > default module isn't run: > > < > http://www.nabble.com/Can%27t-seem-to-load-module-boostraps-in-ZF-1.8-tt23326297.html#a23333075 > > > > Cheers, > > Tim. > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- http://www.vadimg.co.il/
