I create a basic zend framwework projects and added couple of extra modules there. On, each module, I decided to make seperate configurations files for it. I followed some resources on the net, and as it suggest, I placed the following code on the its bootstrap class (not the applications bootstrap class)
class Custom_Bootstrap extends Zend_Application_Module_Bootstrap {
protected function _bootstrap()
{
$_conf = new Zend_Config_Ini(APPLICATION_PATH . "/modules/" . $this->getModuleName() . "/configs/application.ini", APPLICATION_ENV);
$this->_options = array_merge($this->_options, $_conf->toArray());
parent::_bootstrap();
}
}
Its not even working, its gives a error.
Strict Standards: Declaration of Custom_Bootstrap::_bootstrap() should be compatible with that of Zend_Application_Bootstrap_BootstrapAbstract::_bootstrap() in xxx\application\modules\custom\Bootstrap.php on line 2