/var/www/pravda-leboutique.com.ua/framework/yiilite.php(8074)
8062 if(empty($this->connectionString)) 8063 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 8064 try 8065 { 8066 $this->_pdo=$this->createPdoInstance(); 8067 $this->initConnection($this->_pdo); 8068 $this->_active=true; 8069 } 8070 catch(PDOException $e) 8071 { 8072 if(YII_DEBUG) 8073 { 8074 throw new CDbException('CDbConnection failed to open the DB connection: '. 8075 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 8076 } 8077 else 8078 { 8079 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 8080 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 8081 } 8082 } 8083 } 8084 } 8085 protected function close() 8086 {
#0 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(8046): CDbConnection->open() 8041 public function setActive($value) 8042 { 8043 if($value!=$this->_active) 8044 { 8045 if($value) 8046 $this->open(); 8047 else 8048 $this->close(); 8049 } 8050 } 8051 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(8035): CDbConnection->setActive(true) 8030 } 8031 public function init() 8032 { 8033 parent::init(); 8034 if($this->autoConnect) 8035 $this->setActive(true); 8036 } 8037 public function getActive() 8038 { 8039 return $this->_active; 8040 } |
#2 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(1050): CDbConnection->init() 1045 $config=$this->_componentConfig[$id]; 1046 if(!isset($config['enabled']) || $config['enabled']) 1047 { 1048 unset($config['enabled']); 1049 $component=Yii::createComponent($config); 1050 $component->init(); 1051 return $this->_components[$id]=$component; 1052 } 1053 } 1054 } 1055 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(1291): CModule->getComponent("db") 1286 { 1287 return $this->getLocale()->getDateFormatter(); 1288 } 1289 public function getDb() 1290 { 1291 return $this->getComponent('db'); 1292 } 1293 public function getErrorHandler() 1294 { 1295 return $this->getComponent('errorHandler'); 1296 } |
#4 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(7112): CApplication->getDb() 7107 { 7108 if(self::$db!==null) 7109 return self::$db; 7110 else 7111 { 7112 self::$db=Yii::app()->getDb(); 7113 if(self::$db instanceof CDbConnection) 7114 return self::$db; 7115 else 7116 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 7117 } |
#5 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(7935): CActiveRecord->getDbConnection() 7930 private $_model; 7931 public function __construct($model) 7932 { 7933 $this->_model=$model; 7934 $tableName=$model->tableName(); 7935 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 7936 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 7937 array('{class}'=>get_class($model),'{table}'=>$tableName))); 7938 if($table->primaryKey===null) 7939 { 7940 $table->primaryKey=$model->primaryKey(); |
#6 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(7045): CActiveRecordMetaData->__construct(Reviews) 7040 if(isset(self::$_models[$className])) 7041 return self::$_models[$className]; 7042 else 7043 { 7044 $model=self::$_models[$className]=new $className(null); 7045 $model->_md=new CActiveRecordMetaData($model); 7046 $model->attachBehaviors($model->behaviors()); 7047 return $model; 7048 } 7049 } 7050 public function getMetaData() |
#7 |
+
–
/var/www/pravda-leboutique.com.ua/framework/web/CActiveDataProvider.php(74): CActiveRecord::model("Reviews") 69 public function __construct($modelClass,$config=array()) 70 { 71 if(is_string($modelClass)) 72 { 73 $this->modelClass=$modelClass; 74 $this->model=CActiveRecord::model($this->modelClass); 75 } 76 elseif($modelClass instanceof CActiveRecord) 77 { 78 $this->modelClass=get_class($modelClass); 79 $this->model=$modelClass; |
#8 |
+
–
/var/www/pravda-leboutique.com.ua/protected/controllers/ReviewsController.php(181): CActiveDataProvider->__construct("Reviews", array("criteria" => array("condition" => "(select count(*) from user where `id`=`t`.`user_id`) AND approve...", "order" => "date DESC"))) 176 $dataProvider=new CActiveDataProvider('Reviews',array( 177 'criteria'=>array( 178 'condition'=>'(select count(*) from user where `id`=`t`.`user_id`) AND approve = 1', 179 'order'=>'date DESC', 180 ) 181 )); 182 $this->render('index',array( 183 'dataProvider'=>$dataProvider, 184 'summary_rating'=>'1', 185 'vote_count'=>$dataProvider->getTotalItemCount() 186 )); |
#9 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(3891): ReviewsController->actionIndex() 3886 $controller=$this->getController(); 3887 $method=new ReflectionMethod($controller, $methodName); 3888 if($method->getNumberOfParameters()>0) 3889 return $this->runWithParamsInternal($controller, $method, $params); 3890 else 3891 return $controller->$methodName(); 3892 } 3893 } 3894 class CWebUser extends CApplicationComponent implements IWebUser 3895 { 3896 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#10 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(3403): CInlineAction->runWithParams(array("Reviews_page" => "59")) 3398 { 3399 $priorAction=$this->_action; 3400 $this->_action=$action; 3401 if($this->beforeAction($action)) 3402 { 3403 if($action->runWithParams($this->getActionParams())===false) 3404 $this->invalidActionParams($action); 3405 else 3406 $this->afterAction($action); 3407 } 3408 $this->_action=$priorAction; |
#11 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(6405): CController->runAction(CInlineAction) 6400 { 6401 $filter=$this->itemAt($this->filterIndex++); 6402 $filter->filter($this); 6403 } 6404 else 6405 $this->controller->runAction($this->action); 6406 } 6407 } 6408 class CFilter extends CComponent implements IFilter 6409 { 6410 public function filter($filterChain) |
#12 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(6414): CFilterChain->run() 6409 { 6410 public function filter($filterChain) 6411 { 6412 if($this->preFilter($filterChain)) 6413 { 6414 $filterChain->run(); 6415 $this->postFilter($filterChain); 6416 } 6417 } 6418 public function init() 6419 { |
#13 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(3781): CFilter->filter(CFilterChain) 3776 } 3777 public function filterAccessControl($filterChain) 3778 { 3779 $filter=new CAccessControlFilter; 3780 $filter->setRules($this->accessRules()); 3781 $filter->filter($filterChain); 3782 } 3783 public function getPageState($name,$defaultValue=null) 3784 { 3785 if($this->_pageStates===null) 3786 $this->_pageStates=$this->loadPageStates(); |
#14 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(6447): CController->filterAccessControl(CFilterChain) 6442 array('{filter}'=>$filterName, '{class}'=>get_class($controller)))); 6443 } 6444 public function filter($filterChain) 6445 { 6446 $method='filter'.$this->name; 6447 $filterChain->controller->$method($filterChain); 6448 } 6449 } 6450 class CAccessControlFilter extends CFilter 6451 { 6452 public $message; |
#15 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(6402): CInlineFilter->filter(CFilterChain) 6397 public function run() 6398 { 6399 if($this->offsetExists($this->filterIndex)) 6400 { 6401 $filter=$this->itemAt($this->filterIndex++); 6402 $filter->filter($this); 6403 } 6404 else 6405 $this->controller->runAction($this->action); 6406 } 6407 } |
#16 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(3393): CFilterChain->run() 3388 $this->runAction($action); 3389 else 3390 { 3391 $priorAction=$this->_action; 3392 $this->_action=$action; 3393 CFilterChain::create($this,$action,$filters)->run(); 3394 $this->_action=$priorAction; 3395 } 3396 } 3397 public function runAction($action) 3398 { |
#17 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(3378): CController->runActionWithFilters(CInlineAction, array("accessControl", "postOnly + delete")) 3373 { 3374 if(($parent=$this->getModule())===null) 3375 $parent=Yii::app(); 3376 if($parent->beforeControllerAction($this,$action)) 3377 { 3378 $this->runActionWithFilters($action,$this->filters()); 3379 $parent->afterControllerAction($this,$action); 3380 } 3381 } 3382 else 3383 $this->missingAction($actionID); |
#18 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(1725): CController->run("index") 1720 { 1721 list($controller,$actionID)=$ca; 1722 $oldController=$this->_controller; 1723 $this->_controller=$controller; 1724 $controller->init(); 1725 $controller->run($actionID); 1726 $this->_controller=$oldController; 1727 } 1728 else 1729 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1730 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(1645): CWebApplication->runController("reviews/index") 1640 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1641 $_GET[$name]=$value; 1642 } 1643 else 1644 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1645 $this->runController($route); 1646 } 1647 protected function registerCoreComponents() 1648 { 1649 parent::registerCoreComponents(); 1650 $components=array( |
#20 |
+
–
/var/www/pravda-leboutique.com.ua/framework/yiilite.php(1170): CWebApplication->processRequest() 1165 public function run() 1166 { 1167 if($this->hasEventHandler('onBeginRequest')) 1168 $this->onBeginRequest(new CEvent($this)); 1169 register_shutdown_function(array($this,'end'),0,false); 1170 $this->processRequest(); 1171 if($this->hasEventHandler('onEndRequest')) 1172 $this->onEndRequest(new CEvent($this)); 1173 } 1174 public function end($status=0,$exit=true) 1175 { |
#21 |
+
–
/var/www/pravda-leboutique.com.ua/index.php(13): CApplication->run() 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)->run(); |