/var/www/vhosts/rklinik.kz/roddom/kaz/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/vhosts/rklinik.kz/roddom/kaz/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/vhosts/rklinik.kz/roddom/kaz/framework/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/vhosts/rklinik.kz/roddom/kaz/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/vhosts/rklinik.kz/roddom/kaz/framework/base/CApplication.php(450): CModule->getComponent("db") 445 * Returns the database connection component. 446 * @return CDbConnection the database connection 447 */ 448 public function getDb() 449 { 450 return $this->getComponent('db'); 451 } 452 453 /** 454 * Returns the error handler component. 455 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/db/ar/CActiveRecord.php(634): CApplication->getDb() 629 { 630 if(self::$db!==null) 631 return self::$db; 632 else 633 { 634 self::$db=Yii::app()->getDb(); 635 if(self::$db instanceof CDbConnection) 636 return self::$db; 637 else 638 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 639 } |
#5 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/db/ar/CActiveRecord.php(667): CActiveRecord->getDbConnection() 662 * Returns the command builder used by this AR. 663 * @return CDbCommandBuilder the command builder used by this AR 664 */ 665 public function getCommandBuilder() 666 { 667 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 668 } 669 670 /** 671 * Checks whether this AR has the named attribute 672 * @param string $name attribute name |
#6 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/db/ar/CActiveRecord.php(1455): CActiveRecord->getCommandBuilder() 1450 * @return CActiveRecord the record found. Null if no record is found. 1451 */ 1452 public function find($condition='',$params=array()) 1453 { 1454 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1455 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1456 return $this->query($criteria); 1457 } 1458 1459 /** 1460 * Finds all active records satisfying the specified condition. |
#7 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/protected/components/MyUrlRule.php(58): CActiveRecord->find("alias = :alias", array(":alias" => "site/week/37")) 53 if(preg_match('%^[a-z0-9/\-_]+$%', $pathInfo, $matches)) 54 { 55 $alias_draft = $matches[0]; 56 //Делим алиас на две части, на имя модели и экшн (пример 'child/dasha' будет child модель, dasha экшн) 57 58 $category = Category::model()->find('alias = :alias', array(':alias'=>$alias_draft)); 59 if($category) { 60 if($category->type_view == 'list') { 61 $_GET['alias']=$category->alias; 62 return 'post/list'; 63 } elseif($category->type_view == 'page') { |
#8 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/web/CUrlManager.php(370): MyUrlRule->parseUrl(CUrlManager, CHttpRequest, "site/week/37", "site/week/37") 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 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/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 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#11 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run() 18 19 // обрабатываем событие создания модуля 20 $this->onModuleCreate = array($this, 'changeModulePaths'); 21 $this->onModuleCreate(new CEvent ($this->owner)); 22 23 $this->owner->run(); 24 } 25 26 // обработчик события onModuleCreate 27 public function onModuleCreate($event) 28 { |
#12 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/framework/base/CComponent.php(261): WebApplicationEndBehavior->runEnd("frontend") 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#13 |
+
–
/var/www/vhosts/rklinik.kz/roddom/kaz/index.php(13): CComponent->__call("runEnd", array("frontend")) 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->runEnd('frontend'); |