D:\xampp\htdocs\istudent\framework\yiilite.php(9595)
9583 return $result; 9584 } 9585 catch(Exception $e) 9586 { 9587 if($this->_connection->enableProfiling) 9588 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 9589 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 9590 $message=$e->getMessage(); 9591 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 9592 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 9593 if(YII_DEBUG) 9594 $message.='. The SQL statement executed was: '.$this->getText().$par; 9595 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 9596 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 9597 } 9598 } 9599 public function buildQuery($query) 9600 { 9601 $sql=!empty($query['distinct']) ? 'SELECT DISTINCT' : 'SELECT'; 9602 $sql.=' '.(!empty($query['select']) ? $query['select'] : '*'); 9603 if(!empty($query['from'])) 9604 $sql.="\nFROM ".$query['from']; 9605 if(!empty($query['join'])) 9606 $sql.="\n".(is_array($query['join']) ? implode("\n",$query['join']) : $query['join']); 9607 if(!empty($query['where']))
#0 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(9518): CDbCommand->queryInternal("fetchAll", array(2), array()) 9513 { 9514 return $this->queryInternal('',0,$params); 9515 } 9516 public function queryAll($fetchAssociative=true,$params=array()) 9517 { 9518 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9519 } 9520 public function queryRow($fetchAssociative=true,$params=array()) 9521 { 9522 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 9523 } |
#1 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(8042): CDbCommand->queryAll() 8037 if(empty($criteria->with)) 8038 { 8039 if(!$all) 8040 $criteria->limit=1; 8041 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 8042 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 8043 } 8044 else 8045 { 8046 $finder=$this->getActiveFinder($criteria->with); 8047 return $finder->query($criteria,$all); |
#2 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(8111): CActiveRecord->query(CDbCriteria, true) 8106 return $this->query($criteria); 8107 } 8108 public function findAll($condition='',$params=array()) 8109 { 8110 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 8111 return $this->query($criteria,true); 8112 } 8113 public function findByPk($pk,$condition='',$params=array()) 8114 { 8115 $prefix=$this->getTableAlias(true).'.'; 8116 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); |
#3 |
D:\xampp\htdocs\istudent\protected\controllers\ArticleCmsController.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(18): CActiveRecord->findAll(CDbCriteria)
|
#4 |
unknown(0): ArticleCmsController->actionDetail("64")
|
#5 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(4160): ReflectionMethod->invokeArgs(ArticleCmsController, array("64")) 4155 elseif($param->isDefaultValueAvailable()) 4156 $ps[]=$param->getDefaultValue(); 4157 else 4158 return false; 4159 } 4160 $method->invokeArgs($object,$ps); 4161 return true; 4162 } 4163 } 4164 class CInlineAction extends CAction 4165 { |
#6 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(4177): CAction->runWithParamsInternal(ArticleCmsController, ReflectionMethod, array("r" => "articleCms/detail", "id" => "64")) 4172 { 4173 $methodName='action'.$this->getId(); 4174 $controller=$this->getController(); 4175 $method=new ReflectionMethod($controller, $methodName); 4176 if($method->getNumberOfParameters()>0) 4177 return $this->runWithParamsInternal($controller, $method, $params); 4178 $controller->$methodName(); 4179 return true; 4180 } 4181 } 4182 class CWebUser extends CApplicationComponent implements IWebUser |
#7 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(3691): CInlineAction->runWithParams(array("r" => "articleCms/detail", "id" => "64")) 3686 { 3687 $priorAction=$this->_action; 3688 $this->_action=$action; 3689 if($this->beforeAction($action)) 3690 { 3691 if($action->runWithParams($this->getActionParams())===false) 3692 $this->invalidActionParams($action); 3693 else 3694 $this->afterAction($action); 3695 } 3696 $this->_action=$priorAction; |
#8 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(3676): CController->runAction(CInlineAction) 3671 $this->missingAction($actionID); 3672 } 3673 public function runActionWithFilters($action,$filters) 3674 { 3675 if(empty($filters)) 3676 $this->runAction($action); 3677 else 3678 { 3679 $priorAction=$this->_action; 3680 $this->_action=$action; 3681 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(3666): CController->runActionWithFilters(CInlineAction, array()) 3661 { 3662 if(($parent=$this->getModule())===null) 3663 $parent=Yii::app(); 3664 if($parent->beforeControllerAction($this,$action)) 3665 { 3666 $this->runActionWithFilters($action,$this->filters()); 3667 $parent->afterControllerAction($this,$action); 3668 } 3669 } 3670 else 3671 $this->missingAction($actionID); |
#10 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(1775): CController->run("detail") 1770 { 1771 list($controller,$actionID)=$ca; 1772 $oldController=$this->_controller; 1773 $this->_controller=$controller; 1774 $controller->init(); 1775 $controller->run($actionID); 1776 $this->_controller=$oldController; 1777 } 1778 else 1779 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1780 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(1695): CWebApplication->runController("articleCms/detail") 1690 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1691 $_GET[$name]=$value; 1692 } 1693 else 1694 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1695 $this->runController($route); 1696 } 1697 protected function registerCoreComponents() 1698 { 1699 parent::registerCoreComponents(); 1700 $components=array( |
#12 |
+
–
D:\xampp\htdocs\istudent\framework\yiilite.php(1212): CWebApplication->processRequest() 1207 public function run() 1208 { 1209 if($this->hasEventHandler('onBeginRequest')) 1210 $this->onBeginRequest(new CEvent($this)); 1211 register_shutdown_function(array($this,'end'),0,false); 1212 $this->processRequest(); 1213 if($this->hasEventHandler('onEndRequest')) 1214 $this->onEndRequest(new CEvent($this)); 1215 } 1216 public function end($status=0,$exit=true) 1217 { |
#13 |
+
–
D:\xampp\htdocs\istudent\index.php(22): CApplication->run() 17 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 18 19 define("ABS_PATH", dirname(__FILE__)); 20 21 require_once($yii); 22 Yii::createWebApplication($config)->run(); |