Totally new to Zend_Application, please forgive me for asking noob question
like this.
When I instantiate a new application using Zend_Application I pass a
config.ini file. I can accass the settings from this config file as an
array, in Zend_Application_Bootstrap, using $this->getOptions();
However, I would like to access these settings as an object, as I'm used to
from the 'old' $config = new Zend_Config_Ini('../application/config.ini',
APPLICATION_ENV); method. How can I do this?
<?php
// In application.php
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/config.ini'
);
// In Bootstrap.php:
Zend_Registry::set('config', $this->getOptions());
--
View this message in context:
http://n4.nabble.com/Access-Zend-Application-config-ini-settings-as-object-not-array-tp758837p758837.html
Sent from the Zend Framework mailing list archive at Nabble.com.