Example #1
0
 public static function singleton()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 public function setConfigAction()
 {
     $confFile = $this->_appDir . DS . 'app' . DS . 'Config' . DS . self::DB_CONNECT_FILE;
     Framework_Model::setConfig($confFile);
 }