_config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/medias.ini', APPLICATION_ENV); } public function addScripts($action) { $view = $this->getActionController()->view; if (APPLICATION_ENV == "production") { $view->headScript()->appendFile('js/' . $action . '.js'); return; } $scripts = explode(',', $this->_config->get('scripts')->get($action)); foreach ($scripts as $name) { $view->headScript()->appendFile('js/' . trim($name) . '.js'); } } }