Accessing applications.ini


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

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


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.