I am looking to register a reference to the main Database Adapter in the Registry during Bootstrapping so it can be used elsewhere in my site (specifically the Authorisation
I have a method in my bootstrap to add the adapter to the registry. I'd prefer a cleaner solution, but it works:
protected function _initRegistry(){ $this->bootstrap('db'); $db = $this->getResource('db'); $db->setFetchMode(Zend_Db::FETCH_OBJ); Zend_Registry::set('db', $db); }