Retrieve Zend_Config options from application.ini


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.