/home/web_v2/libs/yii/web/CBaseController.php(118)
106 * @param boolean $_return_ whether the rendering result should be returned as a string 107 * @return string the rendering result. Null if the rendering result is not required. 108 */ 109 public function renderInternal($_viewFile_, $_data_=null, $_return_=false) { 110 // we use special variable names here to avoid conflict when extracting data 111 if (is_array($_data_)) 112 extract($_data_, EXTR_PREFIX_SAME, 'data'); 113 else 114 $data=$_data_; 115 if ($_return_) { 116 ob_start(); 117 ob_implicit_flush(false); 118 require($_viewFile_); 119 return ob_get_clean(); 120 } 121 else 122 require($_viewFile_); 123 } 124 125 /** 126 * 127 * @param type $data 128 */ 129 public function objectToArray($data) { 130 if (is_array($data)) {
#0 |
+
–
/home/web_v2/libs/yii/web/CBaseController.php(118): CBaseController::renderInternal() 113 else 114 $data=$_data_; 115 if ($_return_) { 116 ob_start(); 117 ob_implicit_flush(false); 118 require($_viewFile_); 119 return ob_get_clean(); 120 } 121 else 122 require($_viewFile_); 123 } |
#1 |
+
–
/home/web_v2/libs/yii/web/CBaseController.php(91): CBaseController->renderInternal(false, array("hotinfo" => array(array("hid" => "91", "title" => "实体小店取亮名的妙招", "dir" => "shop-name", "tplname" => "shop-name.html", ...)), "yiwang" => array(array("hid" => "90", "title" => "秋季女装进货必看", "dir" => "women-fall", "tplname" => "women-fall.html", ...), array("hid" => "89", "title" => "车企与经销商关系聚变!", "dir" => "car-mufctr-and-dler", "tplname" => "car-mufctr-and-dler.html", ...), array("hid" => "88", "title" => "超级“店王”亮相的背后", "dir" => "super-shop", "tplname" => "super-shop.html", ...), array("hid" => "87", "title" => "美容院选址的秘密", "dir" => "beauty-location-secr", "tplname" => "beauty-location-secret.html", ...), ...)), true) 86 87 $widgetCount = count($this->_widgetStack); 88 if (($renderer = Yii::app()->getViewRenderer()) !== null && $renderer->fileExtension === '.' . CFileHelper::getExtension($viewFile)) 89 $content = $renderer->renderFile($this, $viewFile, $data, $return); 90 else 91 $content=$this->renderInternal($viewFile, $data, $return); 92 if (count($this->_widgetStack) === $widgetCount) 93 return $content; 94 else { 95 $widget = end($this->_widgetStack); 96 throw new CException(Yii::t('yii', '{controller} contains improperly nested widget tags in its view "{view}". A {widget} widget does not have an endWidget() call.', array('{controller}' => get_class($this), '{view}' => $viewFile, '{widget}' => get_class($widget)))); |
#2 |
+
–
/home/web_v2/qudao_v3/protected/controllers/HotController.php(134): CBaseController->renderFile(false, array("hotinfo" => array(array("hid" => "91", "title" => "实体小店取亮名的妙招", "dir" => "shop-name", "tplname" => "shop-name.html", ...)), "yiwang" => array(array("hid" => "90", "title" => "秋季女装进货必看", "dir" => "women-fall", "tplname" => "women-fall.html", ...), array("hid" => "89", "title" => "车企与经销商关系聚变!", "dir" => "car-mufctr-and-dler", "tplname" => "car-mufctr-and-dler.html", ...), array("hid" => "88", "title" => "超级“店王”亮相的背后", "dir" => "super-shop", "tplname" => "super-shop.html", ...), array("hid" => "87", "title" => "美容院选址的秘密", "dir" => "beauty-location-secr", "tplname" => "beauty-location-secret.html", ...), ...)), true) 129 } 130 131 //取得模板路径 132 $tempPathStr = Yii::getPathOfAlias("application") . '/../web/hot/templates/' . $data['hotinfo'][0]['dir'] . "/" . $data['hotinfo'][0]['tplname']; 133 $tempContent = realpath($tempPathStr); 134 $html = $this->renderFile($tempContent, $data, true); 135 echo $html; 136 } 137 138 /** 139 * 专题聚合页 |
#3 |
+
–
/home/web_v2/libs/yii/web/actions/CInlineAction.php(50): HotController->actionHotzt() 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 } |
#4 |
+
–
/home/web_v2/libs/yii/web/CController.php(285): CInlineAction->runWithParams(array("r" => "hot/hotzt", "dir" => "shop-name")) 280 */ 281 public function runAction($action) { 282 $priorAction = $this->_action; 283 $this->_action = $action; 284 if ($this->beforeAction($action)) { 285 if ($action->runWithParams($this->getActionParams()) === false) 286 $this->invalidActionParams($action); 287 else 288 $this->afterAction($action); 289 } 290 $this->_action = $priorAction; |
#5 |
+
–
/home/web_v2/libs/yii/web/CController.php(266): CController->runAction(CInlineAction) 261 * @see createAction 262 * @see runAction 263 */ 264 public function runActionWithFilters($action, $filters) { 265 if (empty($filters)) 266 $this->runAction($action); 267 else { 268 $priorAction = $this->_action; 269 $this->_action = $action; 270 CFilterChain::create($this, $action, $filters)->run(); 271 $this->_action = $priorAction; |
#6 |
+
–
/home/web_v2/libs/yii/web/CController.php(246): CController->runActionWithFilters(CInlineAction, array()) 241 public function run($actionID) { 242 if (($action = $this->createAction($actionID)) !== null) { 243 if (($parent = $this->getModule()) === null) 244 $parent = Yii::app(); 245 if ($parent->beforeControllerAction($this, $action)) { 246 $this->runActionWithFilters($action, $this->filters()); 247 $parent->afterControllerAction($this, $action); 248 } 249 } 250 else 251 $this->missingAction($actionID); |
#7 |
+
–
/home/web_v2/libs/yii/web/CWebApplication.php(328): CController->run("hotzt") 323 { 324 list($controller,$actionID)=$ca; 325 $oldController=$this->_controller; 326 $this->_controller=$controller; 327 $controller->init(); 328 $controller->run($actionID); 329 $this->_controller=$oldController; 330 } 331 else 332 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 333 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/home/web_v2/libs/yii/web/CWebApplication.php(121): CWebApplication->runController("hot/hotzt") 116 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 117 $_GET[$name]=$value; 118 } 119 else 120 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 121 $this->runController($route); 122 } 123 124 /** 125 * Registers the core application components. 126 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/home/web_v2/libs/yii/base/CApplication.php(155): CWebApplication->processRequest() 150 */ 151 public function run() 152 { 153 if($this->hasEventHandler('onBeginRequest')) 154 $this->onBeginRequest(new CEvent($this)); 155 $this->processRequest(); 156 if($this->hasEventHandler('onEndRequest')) 157 $this->onEndRequest(new CEvent($this)); 158 } 159 160 /** |
#10 |
+
–
/home/web_v2/qudao_v3/web/index_master.php(87): CApplication->run() 82 $yii = "yii/yii.php"; 83 84 85 //加载框架引导文件,创建并运行webApplication 86 require_once($yii); 87 Yii::createWebApplication($configfile)->run(); |