/var/www/web/sites/193.107.237.32/Yii/current/db/CDbConnection.php(381)
369 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 370 try 371 { 372 Yii::trace('Opening DB connection','system.db.CDbConnection'); 373 $this->_pdo=$this->createPdoInstance(); 374 $this->initConnection($this->_pdo); 375 $this->_active=true; 376 } 377 catch(PDOException $e) 378 { 379 if(YII_DEBUG) 380 { 381 throw new CDbException('CDbConnection failed to open the DB connection: '. 382 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 383 } 384 else 385 { 386 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 387 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 388 } 389 } 390 } 391 } 392 393 /**
#0 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/db/CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CModule.php(523): CModule->getComponent("db") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#4 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CApplication.php(152): CModule->preloadComponents() 147 $this->initSystemHandlers(); 148 $this->registerCoreComponents(); 149 150 $this->configure($config); 151 $this->attachBehaviors($this->behaviors); 152 $this->preloadComponents(); 153 154 $this->init(); 155 } 156 157 |
#5 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/YiiBase.php(125): CApplication->__construct("/var/www/web/sites/193.107.237.32/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#6 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/var/www/web/sites/193.107.237.32/protected/config/main.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#7 |
+
–
/var/www/web/sites/193.107.237.32/index.php(23): YiiBase::createWebApplication("/var/www/web/sites/193.107.237.32/protected/config/main.php") 18 } 19 20 require_once 'Yii/current/YiiBase.php'; 21 require_once 'protected/yii.php'; 22 23 Yii::createWebApplication($config)->run(); |