Posted By

iroybot on 12/10/10


Tagged

php zendframework


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

foltrabix


Retrieve Zend_Config options from application.ini


 / Published in: PHP
 

  1. ; /config/application.ini
  2. langs.available = "en,es,pt,de,fr"
  3.  
  4. /* in your php, eg: bootstrap */
  5. $config = new Zend_Config($this->getOptions(), true);
  6. Zend_Registry::set('config', $config);
  7. $langarray = explode(',',$config->langs->get('available'));

Report this snippet  

You need to login to post a comment.