/home/r/remosha/public_html/administrator/protected/yii/db/CDbConnection.php(399)
387 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 388 try 389 { 390 Yii::trace('Opening DB connection','system.db.CDbConnection'); 391 $this->_pdo=$this->createPdoInstance(); 392 $this->initConnection($this->_pdo); 393 $this->_active=true; 394 } 395 catch(PDOException $e) 396 { 397 if(YII_DEBUG) 398 { 399 throw new CDbException('CDbConnection failed to open the DB connection: '. 400 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 401 } 402 else 403 { 404 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 405 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 406 } 407 } 408 } 409 } 410 411 /**
#0 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/base/CApplication.php(459): CModule->getComponent("db") 454 * Returns the database connection component. 455 * @return CDbConnection the database connection 456 */ 457 public function getDb() 458 { 459 return $this->getComponent('db'); 460 } 461 462 /** 463 * Returns the error handler component. 464 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/db/ar/CActiveRecord.php(637): CApplication->getDb() 632 { 633 if(self::$db!==null) 634 return self::$db; 635 else 636 { 637 self::$db=Yii::app()->getDb(); 638 if(self::$db instanceof CDbConnection) 639 return self::$db; 640 else 641 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 642 } |
#5 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/db/ar/CActiveRecord.php(670): CActiveRecord->getDbConnection() 665 * Returns the command builder used by this AR. 666 * @return CDbCommandBuilder the command builder used by this AR 667 */ 668 public function getCommandBuilder() 669 { 670 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 671 } 672 673 /** 674 * Checks whether this AR has the named attribute 675 * @param string $name attribute name |
#6 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/db/ar/CActiveRecord.php(1460): CActiveRecord->getCommandBuilder() 1455 * @return static the record found. Null if no record is found. 1456 */ 1457 public function find($condition='',$params=array()) 1458 { 1459 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1460 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1461 return $this->query($criteria); 1462 } 1463 1464 /** 1465 * Finds all active records satisfying the specified condition. |
#7 |
+
–
/home/r/remosha/public_html/administrator/protected/common/components/PageUrlRule.php(18): CActiveRecord->find("enabled=1 && domains REGEXP '(^|\r|\n)remosha\.ru($|\r|\n)'") |
#8 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/web/CUrlManager.php(370): PageUrlRule->parseUrl(CUrlManager, CHttpRequest, "catalog/lakokrasochnye-materialy/laki/dlya-kamnya-i-betona", "catalog/lakokrasochnye-materialy/laki/dlya-kamnya-i-betona") 365 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 366 foreach($this->_rules as $i=>$rule) 367 { 368 if(is_array($rule)) 369 $this->_rules[$i]=$rule=Yii::createComponent($rule); 370 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 371 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 372 } 373 if($this->useStrictParsing) 374 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 375 array('{route}'=>$pathInfo))); |
#9 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/web/CWebApplication.php(140): CUrlManager->parseUrl(CHttpRequest) 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#10 |
+
–
/home/r/remosha/public_html/administrator/protected/yii/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#11 |
+
–
/home/r/remosha/public_html/index.php(23): CApplication->run() 18 //ini_set('display_errors', true); 19 } 20 21 require_once($yii); 22 Yii::setPathOfAlias('frontend', dirname(__FILE__)); 23 Yii::createWebApplication($config)->run(); |