I did the same thing and have the same problem. On Thu, May 7, 2009 at 2:11 PM, Erwin Toze <tozer...@gmail.com> wrote:
> 2009/5/7 Karl <k...@wedgeonline.co.za> > >> Hi, >> >> I am still trying to figure out how to have different layouts per module >> without overriding my main applications layout, so I unfortunately don't >> have examples for you. >> > > I'm also struggling with module specific layout, for instance, if i have: > > two layout files: > /application/layouts/default. phtml > /application/layouts/admin.phtml > > 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? > > Thanks > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- http://www.vadimg.co.il/