/var/www/hosts/framework/db/CDbConnection.php(382)
370 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 371 try 372 { 373 Yii::trace('Opening DB connection','system.db.CDbConnection'); 374 $this->_pdo=$this->createPdoInstance(); 375 $this->initConnection($this->_pdo); 376 $this->_active=true; 377 } 378 catch(PDOException $e) 379 { 380 if(YII_DEBUG) 381 { 382 throw new CDbException('CDbConnection failed to open the DB connection: '. 383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 384 } 385 else 386 { 387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 389 } 390 } 391 } 392 } 393 394 /**
| #0 |
+
–
/var/www/hosts/framework/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/hosts/framework/db/CDbConnection.php(308): CDbConnection->setActive() 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/hosts/framework/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/hosts/framework/logging/CDbLogRoute.php(109): CModule->getComponent() 104 { 105 if($this->_db!==null) 106 return $this->_db; 107 elseif(($id=$this->connectionID)!==null) 108 { 109 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 110 return $this->_db; 111 else 112 throw new CException(Yii::t('yii','CDbLogRoute.connectionID "{id}" does not point to a valid CDbConnection application component.', 113 array('{id}'=>$id))); 114 } |
| #4 |
+
–
/var/www/hosts/framework/logging/CDbLogRoute.php(71): CDbLogRoute->getDbConnection() 66 { 67 parent::init(); 68 69 if($this->autoCreateLogTable) 70 { 71 $db=$this->getDbConnection(); 72 try 73 { 74 $db->createCommand()->delete($this->logTableName,'0=1'); 75 } 76 catch(Exception $e) |
| #5 |
+
–
/var/www/hosts/framework/base/CModule.php(387): CDbLogRoute->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 |
| #6 |
+
–
/var/www/hosts/framework/base/CModule.php(523): CModule->getComponent() 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. |
| #7 |
+
–
/var/www/hosts/framework/base/CApplication.php(163): CModule->preloadComponents() 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 |
| #8 |
+
–
/var/www/hosts/framework/YiiBase.php(127): CApplication->__construct() 122 * @return mixed the application instance 123 */ 124 public static function createApplication($class,$config=null) 125 { 126 127 return new $class($config); 128 } 129 130 /** 131 * Returns the application singleton or null if the singleton has not been created yet. 132 * @return CApplication the application singleton, null if the singleton has not been created yet. |
| #9 |
+
–
/var/www/hosts/framework/YiiBase.php(99): YiiBase::createApplication() 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 099 return self::createApplication('CWebApplication',$config); 100 } 101 102 /** 103 * Creates a console application instance. 104 * @param mixed $config application configuration. |
| #10 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(68): YiiBase::createWebApplication() 63 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 64 Yii::setPathOfAlias('core', INDEX_DIR . DIRECTORY_SEPARATOR . 'core'); 65 require_once(__DIR__ . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR . 'vendors' . DIRECTORY_SEPARATOR . 'Loader.php'); 66 Yii::registerAutoloader(array('Loader', 'systemMainAutoload')); 67 68 Yii::createWebApplication($config_yii_path)->run(); |