Created
October 7, 2011 19:00
-
-
Save AV4TAr/1271090 to your computer and use it in GitHub Desktop.
Use Bootstrap to load configuration file in Zend_Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
//... | |
protected function _initConfig(){ | |
$config_options = new Zend_Config($this->getOptions()); | |
Zend_Registry::set('config', $config_options); | |
return $config_options; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment