I try to do it in bootstrap, and then, as Gordon says, throws it into the registry. You can get it anywhere from the registry.
$this->config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
Zend_Registry::set('config', $this->config);
In addition, in his opinion, the controller will have the wrong place for it, unless you get access to the API with several keys, I think, but even then you should be able to put the logic in the model to select the key from the registry.
source
share