/home/daomenkou/framework/db/CDbCommand.php(544)
532 { 533 if($this->_connection->enableProfiling) 534 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 535 536 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 537 $message=$e->getMessage(); 538 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 539 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 540 541 if(YII_DEBUG) 542 $message.='. The SQL statement executed was: '.$this->getText().$par; 543 544 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 545 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 546 } 547 } 548 549 /** 550 * Builds a SQL SELECT statement from the given query specification. 551 * @param array $query the query specification in name-value pairs. The following 552 * query options are supported: {@link select}, {@link distinct}, {@link from}, 553 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 554 * {@link limit}, {@link offset} and {@link union}. 555 * @throws CDbException if "from" key is not present in given query parameter 556 * @return string the SQL statement
#0 |
+
–
/home/daomenkou/framework/db/CDbCommand.php(416): CDbCommand->queryInternal("fetch", array(2), array()) 411 * @return mixed the first row (in terms of an array) of the query result, false if no result. 412 * @throws CException execution failed 413 */ 414 public function queryRow($fetchAssociative=true,$params=array()) 415 { 416 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 417 } 418 419 /** 420 * Executes the SQL statement and returns the value of the first column in the first row of data. 421 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/daomenkou/protected/controllers/MController.php(6249): CDbCommand->queryRow() 6244 } 6245 } else { 6246 for ($i = 2; $i < 5; $i++) { 6247 if (!empty($city[$i])) { 6248 $sql = "select C_Name from dmk_City where C_ID={$city[$i]}"; 6249 $U_ComAdd .= Yii::app()->db->createCommand($sql)->queryRow()['C_Name']; 6250 } 6251 } 6252 } 6253 } 6254 $U_ComAdd .= $UserComInfo['U_ComAdd']; |
#2 |
+
–
/home/daomenkou/framework/web/actions/CInlineAction.php(49): MController->actionShop() 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 } |
#3 |
+
–
/home/daomenkou/framework/web/CController.php(308): CInlineAction->runWithParams(array("cid" => "127463")) 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; |
#4 |
+
–
/home/daomenkou/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#5 |
+
–
/home/daomenkou/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#6 |
+
–
/home/daomenkou/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "system.web.widgets.COutputCache + Three", "duration" => 1800, "varyByParam" => array("catid")))) 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); |
#7 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(282): CController->run("shop") 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))); |
#8 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(141): CWebApplication->runController("m/shop/cid/127463") 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. |
#9 |
+
–
/home/daomenkou/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#10 |
+
–
/home/daomenkou/index.php(57): CApplication->run() 52 header('Access-Control-Allow-Methods:*'); 53 // 响应头设置 54 header('Access-Control-Allow-Headers:content-type,token,id,userId'); 55 header("Access-Control-Request-Headers: Origin, X-Requested-With, content-Type, Accept, Authorization"); 56 57 Yii::createWebApplication($config)->run(); |