/srv/http/virtual/protected/controllers/NewsController.php(42)
30 $criteria = new CDbCriteria; 31 $criteria->order = 'sort desc,postedon desc'; 32 $list = News::model()->findAll($criteria); 33 $criteria = new CDbCriteria; 34 if (isset($_GET['keywords'])) { 35 $keywords = CCommon::formPost($_GET['keywords']); 36 $criteria->addCondition("title like '%{$keywords}%'"); 37 } 38 $criteria->order = 'sort desc,postedon desc'; 39 $list_data = News::model()->findAll($criteria); 40 }else{ 41 if (isset($_GET['new_type'])) { 42 $type = $GLOBALS['__NEWS_TYPE_URL'][$_GET['new_type']]; 43 $criteria->addCondition("pid = {$type}"); 44 } 45 //新闻search 46 if (isset($_GET['keywords'])) { 47 $keywords = CCommon::formPost($_GET['keywords']); 48 $criteria->addCondition("title like '%{$keywords}%'"); 49 } else { //temSEO 新闻搜索页不需要 50 $pages = new CPagination(News::model()->count($criteria)); 51 if (!empty($_GET['page']) && $_GET['page'] > $pages->getPageCount()) 52 throw new CHttpException(404); 53 $news_page = !empty($_GET['page']) && $_GET['page'] ? $_GET['page'] : ''; 54
#0 |
+
–
/srv/http/yii/web/actions/CInlineAction.php(50): NewsController->actionIndex() 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 } |
#1 |
+
–
/srv/http/yii/web/CController.php(309): CInlineAction->runWithParams(array("new_type" => "detail")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#2 |
+
–
/srv/http/yii/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#3 |
+
–
/srv/http/yii/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#4 |
+
–
/srv/http/yii/web/CWebApplication.php(283): CController->run("index") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#5 |
+
–
/srv/http/yii/web/CWebApplication.php(142): CWebApplication->runController("news/index") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#6 |
+
–
/srv/http/yii/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#7 |
+
–
/srv/http/virtual/www.brandopneumatic.com/htdocs/index.php(82): CApplication->run() 77 78 // remove the following line when in production mode 79 defined('YII_DEBUG') or define('YII_DEBUG',true); 80 81 require_once($yii); 82 Yii::createWebApplication($config)->run(); |