/home/www/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 |
+
–
/home/www/framework/web/CController.php(782): CController->renderPartial("/layouts/message", array("message" => "请先登录!", "urlForward" => "/front/users/login?source=pdf", "extrahead" => "<meta http-equiv="refresh" content="2;url=/front/users/login?sou...", "status" => "error"), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#1 |
+
–
/home/www/drly/protected/components/Controller.php(60): CController->render("/layouts/message", array("message" => "请先登录!", "urlForward" => "/front/users/login?source=pdf", "extrahead" => "<meta http-equiv="refresh" content="2;url=/front/users/login?sou...", "status" => "error"), false) 55 $mobile_view = 'm_'.$view; 56 if($this->getViewFile($mobile_view)){ 57 $view = $mobile_view; 58 } 59 } 60 return parent::render($view, $data, $return); 61 } 62 63 /** 64 * 65 * @param array $data |
#2 |
+
–
/home/www/drly/protected/components/Show.php(31): Controller->render("/layouts/message", array("message" => "请先登录!", "urlForward" => "/front/users/login?source=pdf", "extrahead" => "<meta http-equiv="refresh" content="2;url=/front/users/login?sou...", "status" => "error")) 26 $controller->render('/layouts/message', array( 27 'message' => $message, 28 'urlForward' => $urlForward, 29 'extrahead' => $extrahead, 30 'status' => $status, 31 )); 32 33 } else { 34 // 还没执行到 controller 时 35 die($message); 36 } |
#3 |
+
–
/home/www/drly/protected/components/Show.php(12): Show::message("请先登录!", "/front/users/login?source=pdf", "error") 07 public static function noticeMsg($message, $urlForward=''){ 08 self::message($message, $urlForward, 'alert'); 09 } 10 11 public static function errorMsg($message, $urlForward=''){ 12 self::message($message, $urlForward, 'error'); 13 } 14 15 public static function successMsg($message, $urlForward=''){ 16 self::message($message, $urlForward, 'success'); 17 } |
#4 |
+
–
/home/www/drly/protected/modules/front/controllers/TopicController.php(204): Show::errorMsg("请先登录!", "/front/users/login?source=pdf") 199 //攻略下载PC 200 public function actionPdfDownload() 201 { 202 $id = Request::getParam('id'); 203 if (empty($_SESSION['user'])) { 204 Show::errorMsg('请先登录!', '/front/users/login?source=pdf'); 205 } 206 $note = DestinationNotes::model()->findByPk($id); 207 $this->notesLog($id,'download'); 208 header('Content-type: application/adobe-pdf'); 209 header('Content-Disposition: attachment;filename="旅游攻略.pdf"'); |
#5 |
+
–
/home/www/framework/web/actions/CInlineAction.php(49): TopicController->actionPdfDownload() 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 } |
#6 |
+
–
/home/www/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "32", "type" => "download")) 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; |
#7 |
+
–
/home/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(); |
#8 |
+
–
/home/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); |
#9 |
+
–
/home/www/framework/web/CWebApplication.php(282): CController->run("PdfDownload") 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))); |
#10 |
+
–
/home/www/framework/web/CWebApplication.php(141): CWebApplication->runController("front/topic/PdfDownload") 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. |
#11 |
+
–
/home/www/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 /** |
#12 |
+
–
/home/www/drly/index.php(33): CApplication->run() 28 29 ini_set('display_errors', 1); 30 defined('YII_DEBUG') or define('YII_DEBUG', true); 31 32 require_once($yii); 33 Yii::createWebApplication($config)->run(); 34 error_reporting (0); |