/home/u482259721/domains/haiancontainer.com/public_html/framework/db/CDbCommand.php(518)
506 return $result; 507 } 508 catch(Exception $e) 509 { 510 if($this->_connection->enableProfiling) 511 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 512 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 513 $message = $e->getMessage(); 514 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 515 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 516 if(YII_DEBUG) 517 $message .= '. The SQL statement executed was: '.$this->getText().$par; 518 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 519 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 520 } 521 } 522 523 /** 524 * Builds a SQL SELECT statement from the given query specification. 525 * @param array $query the query specification in name-value pairs. The following 526 * query options are supported: {@link select}, {@link distinct}, {@link from}, 527 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 528 * {@link limit}, {@link offset} and {@link union}. 529 * @return string the SQL statement 530 * @since 1.1.6
#0 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/db/CDbCommand.php(413): CDbCommand->queryInternal("fetchColumn", 0, array()) 408 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 409 * @throws CException execution failed 410 */ 411 public function queryScalar($params=array()) 412 { 413 $result=$this->queryInternal('fetchColumn',0,$params); 414 if(is_resource($result) && get_resource_type($result)==='stream') 415 return stream_get_contents($result); 416 else 417 return $result; 418 } |
#1 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/db/ar/CActiveRecord.php(1510): CDbCommand->queryScalar() 1505 $builder=$this->getCommandBuilder(); 1506 $criteria=$builder->createCriteria($condition,$params); 1507 $this->applyScopes($criteria); 1508 1509 if(empty($criteria->with)) 1510 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1511 else 1512 { 1513 $finder=new CActiveFinder($this,$criteria->with); 1514 return $finder->count($criteria); 1515 } |
#2 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/protected/controllers/SiteController.php(115): CActiveRecord->count(CDbCriteria) 110 $this->navigation_bar = $this->navigation_bar . CHtml::link($cat->name, Yii::app()->urlManager->createUrl('site/ListNews', array('id' => $cat->id, 'name' => myExt::KhongDau($cat->name))),array('class'=>'last')); 111 112 $criteria = new CDbCriteria(); 113 $criteria->condition = 'active = 1 AND cat_id = ' . $cat->id; 114 $criteria->order = 't.id DESC'; 115 $count=News::model()->count($criteria); 116 $pages=new CPagination($count); 117 $pages->route = 'site/ListNews'; 118 119 // results per page 120 $pages->pageSize=$this->new_perpage; |
#3 |
unknown(0): SiteController->actionListNews("17")
|
#4 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(SiteController, array("17")) 099 else if($param->isDefaultValueAvailable()) 100 $ps[]=$param->getDefaultValue(); 101 else 102 return false; 103 } 104 $method->invokeArgs($object,$ps); 105 return true; 106 } 107 } |
#5 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("name" => "gioi-thieu", "id" => "17")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#6 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/CController.php(300): CInlineAction->runWithParams(array("name" => "gioi-thieu", "id" => "17")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#7 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#8 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#9 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/CWebApplication.php(328): CController->run("listnews") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#10 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController("site/ListNews") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#11 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/framework/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#12 |
+
–
/home/u482259721/domains/haiancontainer.com/public_html/index.php(20): CApplication->run() 15 defined('YII_DEBUG') or define('YII_DEBUG',true); 16 // specify how many levels of call stack should be shown in each log message 17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 18 19 require_once($yii); 20 Yii::createWebApplication($config)->run(); |