I’m noticing that $config = $this->getOptions(); gets only the settings of the default application.ini file. If I have additional ini files, how can I tell getOptions about them?
I’m noticing that $config = $this->getOptions(); gets only the settings of the default application.ini
Share
You can merge new options read from some custom ini file into existing options in your Bootstrap.php as follows:
However, if you want to just read a custom file and have access to it through your application I would recommend storing it in a Zend_Registry:
When they are in the registry you can always get them (e.g. in your actions) simply by calling get method: