/data/www/public_html/hadongsilk/common/lib/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 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/db/ar/CActiveRecord.php(1691): CDbCommand->execute() 1686 Yii::trace(get_class($this).'.updateByPk()','system.db.ar.CActiveRecord'); 1687 $builder=$this->getCommandBuilder(); 1688 $table=$this->getTableSchema(); 1689 $criteria=$builder->createPkCriteria($table,$pk,$condition,$params); 1690 $command=$builder->createUpdateCommand($table,$attributes,$criteria); 1691 return $command->execute(); 1692 } 1693 1694 /** 1695 * Updates records with the specified condition. 1696 * See {@link find()} for detailed explanation about $condition and $params. |
#1 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/db/ar/CActiveRecord.php(1070): CActiveRecord->updateByPk("1033", array("id" => "1033", "productCategoryId" => "21", "title" => "Bộ Áo Dài Lụa Hà Đông Hình Tròn Vàng ( Áo 3,7m + Qu...", "image" => "http://hadongsilkvietnam.com/www/uploads/images/san-pham/ao%20da...", ...)) 1065 if($this->beforeSave()) 1066 { 1067 Yii::trace(get_class($this).'.update()','system.db.ar.CActiveRecord'); 1068 if($this->_pk===null) 1069 $this->_pk=$this->getPrimaryKey(); 1070 $this->updateByPk($this->getOldPrimaryKey(),$this->getAttributes($attributes)); 1071 $this->_pk=$this->getPrimaryKey(); 1072 $this->afterSave(); 1073 return true; 1074 } 1075 else |
#2 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/db/ar/CActiveRecord.php(795): CActiveRecord->update(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 /** |
#3 |
+
–
/data/www/public_html/hadongsilk/frontend/protected/controllers/ProductController.php(112): CActiveRecord->save() 107 if (!$model) { 108 $this->redirect(array("site/index")); 109 } 110 //Update visit 111 $model->visit = $model->visit+1; 112 $model->save(); 113 if(!Yii::app()->Cookies->get('products')){ 114 Yii::app()->Cookies->put('products',array($id)); 115 }else{ 116 if(count(Yii::app()->Cookies->get('products')) >24){ 117 // unset(Yii::app()->Cookies->get('products')[23]); |
#4 |
unknown(0): ProductController->actionView("1033")
|
#5 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(ProductController, array("1033")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#6 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ProductController, ReflectionMethod, array("category" => "vai-ao-dai-lua", "title" => "bo-lua-ao-dai-ha-dong-hoa-tiet-hoa-vang-mnv-lhd26-1", "id" => "1033")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#7 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/CController.php(308): CInlineAction->runWithParams(array("category" => "vai-ao-dai-lua", "title" => "bo-lua-ao-dai-ha-dong-hoa-tiet-hoa-vang-mnv-lhd26-1", "id" => "1033")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#8 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#10 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/CWebApplication.php(282): CController->run("view") 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}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/data/www/public_html/hadongsilk/common/lib/framework/web/CWebApplication.php(141): CWebApplication->runController("product/view") 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. |
#12 |
+
–
/data/www/public_html/hadongsilk/common/lib/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 /** |
#13 |
+
–
/data/www/public_html/hadongsilk/index.php(18): CApplication->run() 13 14 require_once($yii); 15 require_once($global); 16 require_once($define); 17 18 Yii::createWebApplication($config)->run(); |