CException

TopicController 无法找到请求的视图 "/layouts/message".

/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.

Stack Trace

#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     }
2024-03-29 07:05:12 nginx/1.5.2 Yii Framework/1.1.13