Posted By

iroybot on 12/11/10


Tagged

ZF zendframework


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

qubestream


Accessing applications.ini


 / Published in: PHP
 

you get the whole config if you leave the APPLICATION_ENV (production/development/etc.) parameter out of the constructor

  1. $config = new Zend_Config_Ini(APPLICATION_PATH.'/configs/application.ini', APPLICATION_ENV);
  2. Zend_Registry::set('config', $config);
  3. $langs = explode(',',$config->get('langs')->get('available'));

Report this snippet  

You need to login to post a comment.