/home/gachngoinhihiep/public_html/framework/yiilite.php(8799)
8787 return $result; 8788 } 8789 catch(Exception $e) 8790 { 8791 if($this->_connection->enableProfiling) 8792 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 8793 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 8794 $message = $e->getMessage(); 8795 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 8796 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 8797 if(YII_DEBUG) 8798 $message .= '. The SQL statement executed was: '.$this->getText().$par; 8799 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 8800 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 8801 } 8802 } 8803 public function buildQuery($query) 8804 { 8805 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 8806 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 8807 if(!empty($query['from'])) 8808 $sql.="\nFROM ".$query['from']; 8809 else 8810 throw new CDbException(Yii::t('yii','The DB query must contain the "from" portion.')); 8811 if(!empty($query['join']))
#0 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(8731): CDbCommand->queryInternal("fetchColumn", 0, array()) 8726 { 8727 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 8728 } 8729 public function queryScalar($params=array()) 8730 { 8731 $result=$this->queryInternal('fetchColumn',0,$params); 8732 if(is_resource($result) && get_resource_type($result)==='stream') 8733 return stream_get_contents($result); 8734 else 8735 return $result; 8736 } |
#1 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(7442): CDbCommand->queryScalar() 7437 { 7438 $builder=$this->getCommandBuilder(); 7439 $criteria=$builder->createCriteria($condition,$params); 7440 $this->applyScopes($criteria); 7441 if(empty($criteria->with)) 7442 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 7443 else 7444 { 7445 $finder=new CActiveFinder($this,$criteria->with); 7446 return $finder->count($criteria); 7447 } |
#2 |
+
–
/home/gachngoinhihiep/public_html/protected/modules/products/models/Products.php(258): CActiveRecord->count(CDbCriteria) 253 $criteria->order = 'record_order DESC, postdate DESC'; 254 $criteria->condition = 'enable=1 AND hoiit_module_item_cat_cat_id IN('.$cid.$data.$data_sub.')'; 255 //$criteria->condition = 'enable=1 AND hoiit_module_item_cat_cat_id=:cid'; 256 //$criteria->params = array(':cid' => $cid); 257 258 $count = $this->count($criteria); 259 260 // elements per page 261 $pages = new CPagination($count); 262 $pages->pageSize = Config::getValue('products_num_item_cat'); 263 $pages->applyLimit($criteria); |
#3 |
+
–
/home/gachngoinhihiep/public_html/protected/modules/products/controllers/DefaultController.php(23): Products->listItemByCat(null) 18 $model = new $model_class; 19 $model_cat = new $model_cat_class; 20 $model_cat_lang = new $model_cat_lang_class; 21 22 $info_cat = $model_cat_lang->findCatByTag($cid); 23 $this->render('cats', array('info_cat' => $info_cat, 'sub_cats' => $model_cat->listItem($info_cat['cat_id']), 'items' => $model->listItemByCat($info_cat['cat_id']))); 24 } 25 26 public function actionTag($tag) { 27 $this->setLayout(); 28 $model_class = ucfirst($this->module->id); |
#4 |
unknown(0): DefaultController->actionCats("gach-xay-dung", 0)
|
#5 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(3793): ReflectionMethod->invokeArgs(DefaultController, array("gach-xay-dung", 0)) 3788 else if($param->isDefaultValueAvailable()) 3789 $ps[]=$param->getDefaultValue(); 3790 else 3791 return false; 3792 } 3793 $method->invokeArgs($object,$ps); 3794 return true; 3795 } 3796 } 3797 class CInlineAction extends CAction 3798 { |
#6 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(3810): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("products" => "san-pham", "cid" => "gach-xay-dung")) 3805 { 3806 $methodName='action'.$this->getId(); 3807 $controller=$this->getController(); 3808 $method=new ReflectionMethod($controller, $methodName); 3809 if($method->getNumberOfParameters()>0) 3810 return $this->runWithParamsInternal($controller, $method, $params); 3811 else 3812 return $controller->$methodName(); 3813 } 3814 } 3815 class CWebUser extends CApplicationComponent implements IWebUser |
#7 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(3324): CInlineAction->runWithParams(array("products" => "san-pham", "cid" => "gach-xay-dung")) 3319 { 3320 $priorAction=$this->_action; 3321 $this->_action=$action; 3322 if($this->beforeAction($action)) 3323 { 3324 if($action->runWithParams($this->getActionParams())===false) 3325 $this->invalidActionParams($action); 3326 else 3327 $this->afterAction($action); 3328 } 3329 $this->_action=$priorAction; |
#8 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(3309): CController->runAction(CInlineAction) 3304 $this->missingAction($actionID); 3305 } 3306 public function runActionWithFilters($action,$filters) 3307 { 3308 if(empty($filters)) 3309 $this->runAction($action); 3310 else 3311 { 3312 $priorAction=$this->_action; 3313 $this->_action=$action; 3314 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(3299): CController->runActionWithFilters(CInlineAction, array()) 3294 { 3295 if(($parent=$this->getModule())===null) 3296 $parent=Yii::app(); 3297 if($parent->beforeControllerAction($this,$action)) 3298 { 3299 $this->runActionWithFilters($action,$this->filters()); 3300 $parent->afterControllerAction($this,$action); 3301 } 3302 } 3303 else 3304 $this->missingAction($actionID); |
#10 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(1699): CController->run("cats") 1694 { 1695 list($controller,$actionID)=$ca; 1696 $oldController=$this->_controller; 1697 $this->_controller=$controller; 1698 $controller->init(); 1699 $controller->run($actionID); 1700 $this->_controller=$oldController; 1701 } 1702 else 1703 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1704 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(1619): CWebApplication->runController("products/default/cats") 1614 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1615 $_GET[$name]=$value; 1616 } 1617 else 1618 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1619 $this->runController($route); 1620 } 1621 protected function registerCoreComponents() 1622 { 1623 parent::registerCoreComponents(); 1624 $components=array( |
#12 |
+
–
/home/gachngoinhihiep/public_html/framework/yiilite.php(1144): CWebApplication->processRequest() 1139 } 1140 public function run() 1141 { 1142 if($this->hasEventHandler('onBeginRequest')) 1143 $this->onBeginRequest(new CEvent($this)); 1144 $this->processRequest(); 1145 if($this->hasEventHandler('onEndRequest')) 1146 $this->onEndRequest(new CEvent($this)); 1147 } 1148 public function end($status=0, $exit=true) 1149 { |
#13 |
+
–
/home/gachngoinhihiep/public_html/index.php(11): CApplication->run() 06 defined('YII_DEBUG') or define('YII_DEBUG', true); 07 // specify how many levels of call stack should be shown in each log message 08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 09 10 require_once('framework/yiilite.php'); 11 Yii::createWebApplication($config)->run(); |