I want to load an extra config file based on the controller’s name in my bootstrap file, so I have to get the name of the controller in bootstrap (in Zend Framework 1.1). Is this possible?
I’ve tried:
$front = Zend_Controller_Front::getInstance();
$controller = $front->getRequest()->getControllerName();
But this doesn’t work:
Fatal error: Call to a member function getControllerName() on a non-object in [path]\application\Bootstrap.php on line 10
You must bootstrap the front controller first to be able to use it.