/home/rrxiamvjs/public_html/framework/db/CDbConnection.php(379)
367 { 368 if ($this->_pdo===null) { 369 if (empty($this->connectionString)) { 370 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 371 } 372 try { 373 Yii::trace('Opening DB connection', 'system.db.CDbConnection'); 374 $this->_pdo=$this->createPdoInstance(); 375 $this->initConnection($this->_pdo); 376 $this->_active=true; 377 } catch (PDOException $e) { 378 if (YII_DEBUG) { 379 throw new CDbException('CDbConnection failed to open the DB connection: '. 380 $e->getMessage(), (int)$e->getCode(), $e->errorInfo); 381 } else { 382 Yii::log($e->getMessage(), CLogger::LEVEL_ERROR, 'exception.CDbException'); 383 throw new CDbException('CDbConnection failed to open the DB connection.', (int)$e->getCode(), $e->errorInfo); 384 } 385 } 386 } 387 } 388 389 /** 390 * Closes the currently active DB connection. 391 * It does nothing if the connection is already closed.
#0 |
+
–
/home/rrxiamvjs/public_html/framework/db/CDbConnection.php(330): CDbConnection->open() 325 */ 326 public function setActive($value) 327 { 328 if ($value!=$this->_active) { 329 if ($value) { 330 $this->open(); 331 } else { 332 $this->close(); 333 } 334 } 335 } |
#1 |
+
–
/home/rrxiamvjs/public_html/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 /** 313 * Returns whether the DB connection is established. |
#2 |
+
–
/home/rrxiamvjs/public_html/framework/base/CModule.php(387): CDbConnection->init() 382 $config=$this->_componentConfig[$id]; 383 if (!isset($config['enabled']) || $config['enabled']) { 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 |
+
–
/home/rrxiamvjs/public_html/framework/logging/CDbLogRoute.php(104): CModule->getComponent() 099 protected function getDbConnection() 100 { 101 if ($this->_db!==null) { 102 return $this->_db; 103 } elseif (($id=$this->connectionID)!==null) { 104 if (($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) { 105 return $this->_db; 106 } else { 107 throw new CException(Yii::t('yii', 'CDbLogRoute.connectionID "{id}" does not point to a valid CDbConnection application component.', 108 array('{id}'=>$id))); 109 } |
#4 |
+
–
/home/rrxiamvjs/public_html/framework/logging/CDbLogRoute.php(70): CDbLogRoute->getDbConnection() 65 public function init() 66 { 67 parent::init(); 68 69 if ($this->autoCreateLogTable) { 70 $db=$this->getDbConnection(); 71 try { 72 $db->createCommand()->delete($this->logTableName, '0=1'); 73 } catch (Exception $e) { 74 $this->createLogTable($db, $this->logTableName); 75 } |
#5 |
+
–
/home/rrxiamvjs/public_html/framework/logging/CLogRouter.php(65): CDbLogRoute->init() 60 public function init() 61 { 62 parent::init(); 63 foreach ($this->_routes as $name=>$route) { 64 $route=Yii::createComponent($route); 65 $route->init(); 66 $this->_routes[$name]=$route; 67 } 68 Yii::getLogger()->attachEventHandler('onFlush', array($this, 'collectLogs')); 69 Yii::app()->attachEventHandler('onEndRequest', array($this, 'processLogs')); 70 } |
#6 |
+
–
/home/rrxiamvjs/public_html/framework/base/CModule.php(387): CLogRouter->init() 382 $config=$this->_componentConfig[$id]; 383 if (!isset($config['enabled']) || $config['enabled']) { 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 |
#7 |
+
–
/home/rrxiamvjs/public_html/framework/base/CModule.php(519): CModule->getComponent() 514 * Loads static application components. 515 */ 516 protected function preloadComponents() 517 { 518 foreach ($this->preload as $id) { 519 $this->getComponent($id); 520 } 521 } 522 523 /** 524 * Preinitializes the module. |
#8 |
+
–
/home/rrxiamvjs/public_html/framework/base/CApplication.php(161): CModule->preloadComponents() 156 $this->initSystemHandlers(); 157 $this->registerCoreComponents(); 158 159 $this->configure($config); 160 $this->attachBehaviors($this->behaviors); 161 $this->preloadComponents(); 162 163 $this->init(); 164 } 165 166 |
#9 |
+
–
/home/rrxiamvjs/public_html/framework/YiiBase.php(125): CApplication->__construct() 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. |
#10 |
+
–
/home/rrxiamvjs/public_html/_functions.php(34): YiiBase::createApplication() 29 if(isset($application->mainSiteConfig['hide_script_file'])) { 30 $application->urlManager->showScriptName = !$application->mainSiteConfig['hide_script_file']; 31 } 32 } 33 include dirname(__FILE__).'/common/classes/WebApplication.php'; 34 $application = Yii::createApplication('WebApplication', $config); 35 $application->builderMode = $admin; 36 $application->isMainSite = false; 37 $application->website_type = $type; 38 $application->website_name = $name; 39 $application->self_domain = $self_domain; |
#11 |
+
–
/home/rrxiamvjs/public_html/index.php(59): run() 54 if (strlen($subdomains) > 0) { 55 run($subdomains, 'template'); 56 exit(); 57 } 58 } else { 59 run($subdomain, 'website'); 60 } 61 exit(); 62 } 63 64 run($domain, 'website', 0, 1); |