/** * Loads help configuration. * @return Zend_Config_Ini */ private static function getHelpConfig() { if (empty(Home_Model_HelpFiles::$__helpConfig)) { $config = null; $filePath = Home_Model_HelpFiles::getHelpPath() . 'help.ini'; if (file_exists($filePath)) { try { $config = new Zend_Config_Ini($filePath); } catch (Zend_Config_Exception $zce) { // TODO einfachere Lösung? $logger = Zend_Registry::get('Zend_Log'); if (!is_null($logger)) { $logger->err("could not load help configuration", $zce); } } } if (is_null($config)) { $config = new Zend_Config(array()); } Home_Model_HelpFiles::$__helpConfig = $config; } return Home_Model_HelpFiles::$__helpConfig; }