/data/www/framework/web/CController.php(881)
869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else 878 echo $output; 879 } 880 else 881 throw new CException(Yii::t('yii','{controller} cannot find the requested view "{view}".', 882 array('{controller}'=>get_class($this), '{view}'=>$view))); 883 } 884 885 /** 886 * Renders a named clip with the supplied parameters. 887 * This is similar to directly accessing the {@link clips} property. 888 * The main difference is that it can take an array of named parameters 889 * which will replace the corresponding placeholders in the clip. 890 * @param string $name the name of the clip 891 * @param array $params an array of named parameters (name=>value) that should replace 892 * their corresponding placeholders in the clip 893 * @param boolean $return whether to return the clip content or echo it.
#0 |
+
–
/data/www/framework/web/CController.php(785): CController->renderPartial("//list/t103", array("tpl" => "t103", "cate_id" => 34432, "list" => array(), "bannerList" => array(), ...), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
#1 |
+
–
/data/www/web/protected/controllers/IndexController.php(327): CController->render("//list/t103", array("tpl" => "t103", "cate_id" => 34432, "list" => array(), "bannerList" => array(), ...)) 322 'list' => $list, 323 'bannerList' => $bannerList_tmp, //信息列表页显示banner的数量 324 'keyword' => $keyword, 325 'mpModel' => $mpModel, 326 ) 327 ); 328 } 329 } 330 331 public function actionDetail() 332 { |
#2 |
+
–
/data/www/framework/web/actions/CInlineAction.php(49): IndexController->actionList() 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 |
+
–
/data/www/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "34432", "wxsd" => "mp.weixin.qq.com")) 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 |
+
–
/data/www/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#5 |
+
–
/data/www/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
#6 |
+
–
/data/www/framework/web/CWebApplication.php(282): CController->run("list") 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))); |
#7 |
+
–
/data/www/framework/web/CWebApplication.php(141): CWebApplication->runController("index/list") 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. |
#8 |
+
–
/data/www/framework/base/CApplication.php(183): CWebApplication->processRequest() 178 public function run() 179 { 180 if($this->hasEventHandler('onBeginRequest')) 181 $this->onBeginRequest(new CEvent($this)); 182 register_shutdown_function(array($this,'end'),0,false); 183 $this->processRequest(); 184 if($this->hasEventHandler('onEndRequest')) 185 $this->onEndRequest(new CEvent($this)); 186 } 187 188 /** |
#9 |
+
–
/data/www/web/index.php(24): CApplication->run() 19 require_once ROOT_DIR.'/composer/vendor/autoload.php'; 20 21 22 //载入主配置文件 23 require_once($yii); 24 Yii::createWebApplication($config)->run(); |