/home/c/ct50414/public_html/framework/db/CDbCommand.php(357)
345 { 346 if($this->_connection->enableProfiling) 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 348 349 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 350 $message=$e->getMessage(); 351 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 352 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 353 354 if(YII_DEBUG) 355 $message.='. The SQL statement executed was: '.$this->getText().$par; 356 357 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 358 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 359 } 360 } 361 362 /** 363 * Executes the SQL statement and returns query result. 364 * This method is for executing an SQL query that returns result set. 365 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 366 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 367 * them in this way can improve the performance. Note that if you pass parameters in this way, 368 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 369 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
/home/c/ct50414/public_html/framework/db/ar/CActiveRecord.php(1023): CDbCommand->execute() 1018 { 1019 Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord'); 1020 $builder=$this->getCommandBuilder(); 1021 $table=$this->getMetaData()->tableSchema; 1022 $command=$builder->createInsertCommand($table,$this->getAttributes($attributes)); 1023 if($command->execute()) 1024 { 1025 $primaryKey=$table->primaryKey; 1026 if($table->sequenceName!==null) 1027 { 1028 if(is_string($primaryKey) && $this->$primaryKey===null) |
#1 |
+
–
/home/c/ct50414/public_html/framework/db/ar/CActiveRecord.php(795): CActiveRecord->insert(null) 790 * @return boolean whether the saving succeeds 791 */ 792 public function save($runValidation=true,$attributes=null) 793 { 794 if(!$runValidation || $this->validate($attributes)) 795 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 796 else 797 return false; 798 } 799 800 /** |
#2 |
+
–
/home/c/ct50414/public_html/application/protected/components/DefaultController.php(137): CActiveRecord->save() 132 $visitor->utm_source = isset($_GET['utm_source']) ? $_GET['utm_source'] : ''; 133 $visitor->utm_campaign = isset($_GET['utm_campaign']) ? $_GET['utm_campaign'] : ''; 134 $visitor->utm_medium = isset($_GET['utm_medium']) ? $_GET['utm_medium'] : ''; 135 $visitor->utm_term = isset($_GET['utm_term']) ? $_GET['utm_term'] : ''; 136 $visitor->utm_content = isset($_GET['utm_content']) ? $_GET['utm_content'] : ''; 137 $visitor->save(); 138 $_SESSION['visitor_id'] = $visitor->id; 139 } 140 141 142 protected function createSeo(RActiveRecord $model){ |
#3 |
+
–
/home/c/ct50414/public_html/application/protected/components/DefaultController.php(98): DefaultController->createCookie() 093 protected function checkVisitor(){ 094 095 /** Первый вход */ 096 if(!isset($_SESSION['visitor_id'])){ 097 if(!isset($_COOKIE['visitor_uid'])){ 098 self::createCookie(); 099 }else{ 100 $visitor = self::findVisitor(); 101 if($visitor) { 102 $_SESSION['visitor_id'] = $visitor->id; 103 }else{ |
#4 |
+
–
/home/c/ct50414/public_html/application/protected/components/DefaultController.php(87): DefaultController->checkVisitor() 82 83 Yii::app()->language = 'ru'; 84 85 @session_start(); 86 87 self::checkVisitor(); 88 89 parent::init(); 90 } 91 92 |
#5 |
+
–
/home/c/ct50414/public_html/framework/web/CWebApplication.php(281): DefaultController->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#6 |
+
–
/home/c/ct50414/public_html/framework/web/CWebApplication.php(141): CWebApplication->runController("default/goods/type") 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. 146 * This method overrides the parent implementation by registering additional core components. |
#7 |
+
–
/home/c/ct50414/public_html/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#8 |
+
–
/home/c/ct50414/public_html/index.php(26): CApplication->run() 21 public static function app() 22 { 23 return parent::app(); 24 } 25 } 26 Yii::createWebApplication($config)->run(); 27 28 29 function dump($array, $exit=true) { 30 echo '<pre>'; 31 print_r($array); |