Matthew Weier O'Phinney wrote:
Push their initialization into a different location. For instance, you could create one or more front controller plugins that, based on the module or controller detected, initialize the session, or the database, or authentication session, or acls -- and pull configuration from the bootstrap, via the front controller:$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap'));Alternately, initialization can be done within individual controllers,pulling the configuration from the bootstrap () in order to get necessary settings: $bootstrap = $this->getInvokeArg('bootstrap')
Question out of curiosity. We have the global application object hanging out there. It has to be global by the framework design. Can we not use that to bootstrap components, and/or get the config options?
