/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/CDbConnection.php(348)
336 throw new CDbException(Yii::t('yii','CDbConnection.connectionString cannot be empty.')); 337 try 338 { 339 Yii::trace('Opening DB connection','system.db.CDbConnection'); 340 $this->_pdo=$this->createPdoInstance(); 341 $this->initConnection($this->_pdo); 342 $this->_active=true; 343 } 344 catch(PDOException $e) 345 { 346 if(YII_DEBUG) 347 { 348 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection: {error}', 349 array('{error}'=>$e->getMessage())),(int)$e->getCode(),$e->errorInfo); 350 } 351 else 352 { 353 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 354 throw new CDbException(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo); 355 } 356 } 357 } 358 } 359 360 /**
| #0 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/CDbConnection.php(297): CDbConnection->open() 292 public function setActive($value) 293 { 294 if($value!=$this->_active) 295 { 296 if($value) 297 $this->open(); 298 else 299 $this->close(); 300 } 301 } 302 |
| #1 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/db/CDbConnection.php(275): CDbConnection->setActive(true) 270 */ 271 public function init() 272 { 273 parent::init(); 274 if($this->autoConnect) 275 $this->setActive(true); 276 } 277 278 /** 279 * Returns whether the DB connection is established. 280 * @return boolean whether the DB connection is established |
| #2 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CModule.php(372): CDbConnection->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
| #3 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/caching/CDbCache.php(151): CModule->getComponent("db") 146 { 147 if($this->_db!==null) 148 return $this->_db; 149 else if(($id=$this->connectionID)!==null) 150 { 151 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 152 return $this->_db; 153 else 154 throw new CException(Yii::t('yii','CDbCache.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 155 array('{id}'=>$id))); 156 } |
| #4 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/caching/CDbCache.php(74): CDbCache->getDbConnection() 69 */ 70 public function init() 71 { 72 parent::init(); 73 74 $db=$this->getDbConnection(); 75 $db->setActive(true); 76 if($this->autoCreateCacheTable) 77 { 78 $sql="DELETE FROM {$this->cacheTableName} WHERE expire>0 AND expire<".time(); 79 try |
| #5 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CModule.php(372): CDbCache->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
| #6 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CUrlManager.php(187): CModule->getComponent("cache") 182 */ 183 protected function processRules() 184 { 185 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 186 return; 187 if($this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 188 { 189 $hash=md5(serialize($this->rules)); 190 if(($data=$cache->get(self::CACHE_KEY))!==false && isset($data[1]) && $data[1]===$hash) 191 { 192 $this->_rules=$data[0]; |
| #7 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CUrlManager.php(177): CUrlManager->processRules() 172 * Initializes the application component. 173 */ 174 public function init() 175 { 176 parent::init(); 177 $this->processRules(); 178 } 179 180 /** 181 * Processes the URL rules. 182 */ |
| #8 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CModule.php(372): CUrlManager->init() 367 if(!isset($config['enabled']) || $config['enabled']) 368 { 369 Yii::trace("Loading \"$id\" application component",'system.CModule'); 370 unset($config['enabled']); 371 $component=Yii::createComponent($config); 372 $component->init(); 373 return $this->_components[$id]=$component; 374 } 375 } 376 } 377 |
| #9 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(498): CModule->getComponent("urlManager") 493 * Returns the URL manager component. 494 * @return CUrlManager the URL manager component 495 */ 496 public function getUrlManager() 497 { 498 return $this->getComponent('urlManager'); 499 } 500 501 /** 502 * Returns a global value. 503 * |
| #10 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/web/CWebApplication.php(120): CApplication->getUrlManager() 115 $route=$this->catchAllRequest[0]; 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. |
| #11 |
+
–
/home/zikbay/public_html/yii-1.1.7.r3135/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
| #12 |
+
–
/home/zikbay/public_html/index.php(25): CApplication->run() 20 ) 21 { 22 require_once(dirname(__FILE__).'/protected/modules/install/install.php'); 23 }else{ 24 require_once($yii); 25 Yii::createWebApplication($config)->run(); 26 } |