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.