/home/www/hlx_lccz/yii/framework/db/CDbCommand.php(516)
504 return $result; 505 } 506 catch(Exception $e) 507 { 508 if($this->_connection->enableProfiling) 509 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 510 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 511 $message = $e->getMessage(); 512 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 513 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 514 if(YII_DEBUG) 515 $message .= '. The SQL statement executed was: '.$this->getText().$par; 516 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 517 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 518 } 519 } 520 521 /** 522 * Builds a SQL SELECT statement from the given query specification. 523 * @param array $query the query specification in name-value pairs. The following 524 * query options are supported: {@link select}, {@link distinct}, {@link from}, 525 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 526 * {@link limit}, {@link offset} and {@link union}. 527 * @return string the SQL statement 528 * @since 1.1.6
#0 |
+
–
/home/www/hlx_lccz/yii/framework/db/CDbCommand.php(393): CDbCommand->queryInternal("fetch", array(2), array()) 388 * @return mixed the first row (in terms of an array) of the query result, false if no result. 389 * @throws CException execution failed 390 */ 391 public function queryRow($fetchAssociative=true,$params=array()) 392 { 393 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 394 } 395 396 /** 397 * Executes the SQL statement and returns the value of the first column in the first row of data. 398 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/www/hlx_lccz/yii/framework/db/ar/CActiveRecord.php(1290): CDbCommand->queryRow() 1285 if(empty($criteria->with)) 1286 { 1287 if(!$all) 1288 $criteria->limit=1; 1289 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1290 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1291 } 1292 else 1293 { 1294 $finder=new CActiveFinder($this,$criteria->with); 1295 return $finder->query($criteria,$all); |
#2 |
+
–
/home/www/hlx_lccz/yii/framework/db/ar/CActiveRecord.php(1396): CActiveRecord->query(CDbCriteria) 1391 */ 1392 public function find($condition='',$params=array()) 1393 { 1394 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1395 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1396 return $this->query($criteria); 1397 } 1398 1399 /** 1400 * Finds all active records satisfying the specified condition. 1401 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/home/www/hlx_lccz/protected/controllers/InfoController.php(148): CActiveRecord->find(array("condition" => "id=")) 143 'condition' => 'articleid = '.$info->id, 144 )); 145 } 146 $crumbsParent = Category::model()->find(array( 147 'condition'=>'id='.$info->parent 148 )); 149 $crumbsEnd = Category::model()->find(array( 150 'condition'=>'id='.$info->type 151 )); 152 $this->renderCompact('detail',array( 153 'naver' => $this->getNaver(), |
#4 |
+
–
/home/www/hlx_lccz/yii/framework/web/actions/CInlineAction.php(50): InfoController->actionDetail() 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 } |
#5 |
+
–
/home/www/hlx_lccz/yii/framework/web/CController.php(300): CInlineAction->runWithParams(array("info" => "list", "")) 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; |
#6 |
+
–
/home/www/hlx_lccz/yii/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(); |
#7 |
+
–
/home/www/hlx_lccz/yii/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); |
#8 |
+
–
/home/www/hlx_lccz/yii/framework/web/CWebApplication.php(277): CController->run("detail") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#9 |
+
–
/home/www/hlx_lccz/yii/framework/web/CWebApplication.php(136): CWebApplication->runController("info/detail/info/list/54") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/home/www/hlx_lccz/yii/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#11 |
+
–
/home/www/hlx_lccz/index.php(18): CApplication->run() 13 // $star_m = memory_get_usage(); 14 //} 15 require_once($yii); 16 $app = Yii::createWebApplication($config); 17 $app->attachBehavior('WebBehavior', 'application.behavior.WebBehavior'); 18 $app->run(); 19 20 //if (YII_DEBUG) 21 //{ 22 // echo ((memory_get_usage() - $star_m) / (1024*1024)); 23 //} |