/home/dailyxetaithaco/public_html/framework/yiilite.php(9341)
9329 return $result; 9330 } 9331 catch(Exception $e) 9332 { 9333 if($this->_connection->enableProfiling) 9334 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 9335 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9336 $message=$e->getMessage(); 9337 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 9338 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9339 if(YII_DEBUG) 9340 $message.='. The SQL statement executed was: '.$this->getText().$par; 9341 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 9342 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9343 } 9344 } 9345 public function buildQuery($query) 9346 { 9347 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 9348 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 9349 if(!empty($query['from'])) 9350 $sql.="\nFROM ".$query['from']; 9351 else 9352 throw new CDbException(Yii::t('yii','The DB query must contain the "from" portion.')); 9353 if(!empty($query['join']))
#0 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(9272): CDbCommand->queryInternal("fetchColumn", 0, array()) 9267 { 9268 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9269 } 9270 public function queryScalar($params=array()) 9271 { 9272 $result=$this->queryInternal('fetchColumn',0,$params); 9273 if(is_resource($result) && get_resource_type($result)==='stream') 9274 return stream_get_contents($result); 9275 else 9276 return $result; 9277 } |
#1 |
+
–
/home/dailyxetaithaco/public_html/framework/db/ar/CActiveFinder.php(759): CDbCommand->queryScalar() 754 else 755 $query->selects=array("COUNT(*)"); 756 757 $query->orders=$query->groups=$query->havings=array(); 758 $command=$query->createCommand($this->_builder); 759 return $command->queryScalar(); 760 } 761 } 762 763 /** 764 * Calls {@link CActiveRecord::afterFind} of all the records. |
#2 |
+
–
/home/dailyxetaithaco/public_html/framework/db/ar/CActiveFinder.php(151): CJoinElement->count(CDbCriteria) 146 147 $alias=$criteria->alias===null ? 't' : $criteria->alias; 148 $this->_joinTree->tableAlias=$alias; 149 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($alias); 150 151 $n=$this->_joinTree->count($criteria); 152 $this->destroyJoinTree(); 153 return $n; 154 } 155 156 /** |
#3 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(7948): CActiveFinder->count(CDbCriteria) 7943 if(empty($criteria->with)) 7944 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 7945 else 7946 { 7947 $finder=$this->getActiveFinder($criteria->with); 7948 return $finder->count($criteria); 7949 } 7950 } 7951 public function countByAttributes($attributes,$condition='',$params=array()) 7952 { 7953 $prefix=$this->getTableAlias(true).'.'; |
#4 |
+
–
/home/dailyxetaithaco/public_html/protected/modules/products/models/Products.php(323): CActiveRecord->count(CDbCriteria) 318 $criteria = new CDbCriteria(); 319 $criteria->with = array(__CLASS__ . 'Cat'); 320 $criteria->order = 'record_order DESC, postdate DESC'; 321 $criteria->condition = 'enable=1 AND record_id IN('.$list_record_id.')'; 322 //$criteria->params = array(':record_id' => $list_record_id); 323 $count = $this->count($criteria); 324 325 // elements per page 326 $pages = new CPagination($count); 327 $pages->pageSize = Config::getValue('products_num_item_cat'); 328 $pages->applyLimit($criteria); |
#5 |
+
–
/home/dailyxetaithaco/public_html/protected/modules/products/controllers/DefaultController.php(44): Products->listItemByTag("fuso-canter-4-99") 39 public function actionTag($tag) { 40 $this->setLayout(); 41 $model_class = ucfirst($this->module->id); 42 $model = new $model_class(); 43 44 $this->render('tag', array('tag_info' => Tags::model()->tagInfo($tag),'items' => $model->listItemByTag($tag))); 45 } 46 47 public function actionView($id) { 48 $this->setLayout(); 49 $model_class = ucfirst($this->module->id); |
#6 |
unknown(0): DefaultController->actionTag("fuso-canter-4-99")
|
#7 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(4039): ReflectionMethod->invokeArgs(DefaultController, array("fuso-canter-4-99")) 4034 elseif($param->isDefaultValueAvailable()) 4035 $ps[]=$param->getDefaultValue(); 4036 else 4037 return false; 4038 } 4039 $method->invokeArgs($object,$ps); 4040 return true; 4041 } 4042 } 4043 class CInlineAction extends CAction 4044 { |
#8 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(4056): CAction->runWithParamsInternal(DefaultController, ReflectionMethod, array("products" => "xe-tai", "tag" => "fuso-canter-4-99")) 4051 { 4052 $methodName='action'.$this->getId(); 4053 $controller=$this->getController(); 4054 $method=new ReflectionMethod($controller, $methodName); 4055 if($method->getNumberOfParameters()>0) 4056 return $this->runWithParamsInternal($controller, $method, $params); 4057 else 4058 return $controller->$methodName(); 4059 } 4060 } 4061 class CWebUser extends CApplicationComponent implements IWebUser |
#9 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(3570): CInlineAction->runWithParams(array("products" => "xe-tai", "tag" => "fuso-canter-4-99")) 3565 { 3566 $priorAction=$this->_action; 3567 $this->_action=$action; 3568 if($this->beforeAction($action)) 3569 { 3570 if($action->runWithParams($this->getActionParams())===false) 3571 $this->invalidActionParams($action); 3572 else 3573 $this->afterAction($action); 3574 } 3575 $this->_action=$priorAction; |
#10 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(3555): CController->runAction(CInlineAction) 3550 $this->missingAction($actionID); 3551 } 3552 public function runActionWithFilters($action,$filters) 3553 { 3554 if(empty($filters)) 3555 $this->runAction($action); 3556 else 3557 { 3558 $priorAction=$this->_action; 3559 $this->_action=$action; 3560 CFilterChain::create($this,$action,$filters)->run(); |
#11 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array()) 3540 { 3541 if(($parent=$this->getModule())===null) 3542 $parent=Yii::app(); 3543 if($parent->beforeControllerAction($this,$action)) 3544 { 3545 $this->runActionWithFilters($action,$this->filters()); 3546 $parent->afterControllerAction($this,$action); 3547 } 3548 } 3549 else 3550 $this->missingAction($actionID); |
#12 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(1746): CController->run("tag") 1741 { 1742 list($controller,$actionID)=$ca; 1743 $oldController=$this->_controller; 1744 $this->_controller=$controller; 1745 $controller->init(); 1746 $controller->run($actionID); 1747 $this->_controller=$oldController; 1748 } 1749 else 1750 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1751 array('{route}'=>$route===''?$this->defaultController:$route))); |
#13 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(1666): CWebApplication->runController("products/default/tag") 1661 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1662 $_GET[$name]=$value; 1663 } 1664 else 1665 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1666 $this->runController($route); 1667 } 1668 protected function registerCoreComponents() 1669 { 1670 parent::registerCoreComponents(); 1671 $components=array( |
#14 |
+
–
/home/dailyxetaithaco/public_html/framework/yiilite.php(1191): CWebApplication->processRequest() 1186 public function run() 1187 { 1188 if($this->hasEventHandler('onBeginRequest')) 1189 $this->onBeginRequest(new CEvent($this)); 1190 register_shutdown_function(array($this,'end'),0,false); 1191 $this->processRequest(); 1192 if($this->hasEventHandler('onEndRequest')) 1193 $this->onEndRequest(new CEvent($this)); 1194 } 1195 public function end($status=0,$exit=true) 1196 { |
#15 |
+
–
/home/dailyxetaithaco/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(); |