/wwwroot/website/i.xpaper.net/framework/web/CController.php(878)
866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else 875 echo $output; 876 } 877 else 878 throw new CException(Yii::t('yii','{controller} cannot find the requested view "{view}".', 879 array('{controller}'=>get_class($this), '{view}'=>$view))); 880 } 881 882 /** 883 * Renders a named clip with the supplied parameters. 884 * This is similar to directly accessing the {@link clips} property. 885 * The main difference is that it can take an array of named parameters 886 * which will replace the corresponding placeholders in the clip. 887 * @param string $name the name of the clip 888 * @param array $params an array of named parameters (name=>value) that should replace 889 * their corresponding placeholders in the clip 890 * @param boolean $return whether to return the clip content or echo it.
#0 |
+
–
/wwwroot/website/i.xpaper.net/protected/controllers/NewsController.php(637): CController->renderPartial("0", array("posts" => array(), "pages" => CPagination, "news_id" => "3792", "base_rs" => SiteBase, ...)) 632 file_put_contents("./shtml/{$dir_name}/news/{$release_id}/{$paper_id}/{$news_id}-{$page}.shtml",$shtml); 633 $touch_time = time()+ NEWS_INDEX_SHTML; 634 touch("./shtml/{$dir_name}/news/{$release_id}/{$paper_id}/{$news_id}-{$page}.shtml",$touch_time); 635 echo $shtml; 636 }else{ 637 $this->renderPartial($views,$array); 638 } 639 } 640 641 } 642 |
#1 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/actions/CInlineAction.php(49): NewsController->actionIndex() 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 } |
#2 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/CController.php(308): CInlineAction->runWithParams(array("dirname" => "sytdb", "release_id" => "276", "paper_id" => "633", "news_id" => "3792", ...)) 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; |
#3 |
+
–
/wwwroot/website/i.xpaper.net/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 } |
#4 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/widgets/COutputCache.php(151): CFilterChain->run() 146 * @return boolean whether the filtering process should stop after this filter. Defaults to false. 147 */ 148 public function filter($filterChain) 149 { 150 if(!$this->getIsContentCached()) 151 $filterChain->run(); 152 $this->run(); 153 } 154 155 /** 156 * Marks the start of content to be cached. |
#5 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/filters/CFilterChain.php(130): COutputCache->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 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 } |
#6 |
+
–
/wwwroot/website/i.xpaper.net/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 /** |
#7 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "system.web.widgets.COutputCache + index", "varyByParam" => array("news_id", "paper_id", "dirname", "page", ...), "duration" => 30, "dependency" => array("class" => "CDbCacheDependency", "sql" => "select max(cache) from {{news}} where news_id = 3792")), array(0 => "system.web.widgets.COutputCache + appindex", "varyByParam" => array("news_id", "paper_id", "dirname", "page", ...), "duration" => 30, "dependency" => array("class" => "CDbCacheDependency", "sql" => "select max(cache) from {{news}} where news_id = 3792")))) 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); |
#8 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#9 |
+
–
/wwwroot/website/i.xpaper.net/framework/web/CWebApplication.php(141): CWebApplication->runController("news/index") 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. |
#10 |
+
–
/wwwroot/website/i.xpaper.net/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#11 |
+
–
/wwwroot/website/i.xpaper.net/index.php(15): CApplication->run() 10 defined('YII_DEBUG') or define('YII_DEBUG',true);//调试定为 true 上线改成 false 11 // specify how many levels of call stack should be shown in each log message 12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |