Exemplo n.º 1
0
 public function init()
 {
     if (!Zend_Registry::isRegistered('extConfig')) {
         $configTable = new Application_Model_DbTable_Config();
         Zend_Registry::set('extConfig', $configTable->selectConfig());
     }
 }
Exemplo n.º 2
0
 public function init()
 {
     try {
         $this->_config = Zend_Registry::get('extConfig');
     } catch (Zend_Exception $ze) {
         if (empty($this->_config)) {
             $configTable = new Application_Model_DbTable_Config();
             $this->_config = $configTable->selectConfig();
             Zend_Registry::set('extConfig', $this->_config);
         }
     }
 }