CException

ContentController 无法找到请求的视图 "list".

D:\www\phpStudy\WWW\www.haohongdz.com\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
+
 D:\www\phpStudy\WWW\www.haohongdz.com\protected\controllers\ContentController.php(48): CController->render("list")
43       $tpl = $this->cate['indextpl'];
44     }
45     if ($tpl == '') {
46       $tpl = 'list';
47     }
48     $this->render($tpl);
49   }
50 
51   public function actionView($cid, $id) {
52     $cid = intval($cid);
53     $id = intval($id);
#11
+
 D:\www\phpStudy\WWW\www.haohongdz.com\common.php(13): CApplication->run()
08 // specify how many levels of call stack should be shown in each log message
09  defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
10 require_once($yii);
11 $app = Yii::createWebApplication($config);
12 require_once($globals);
13 $app->run();
#12
+
 D:\www\phpStudy\WWW\www.haohongdz.com\index.php(11): require_once("D:\www\phpStudy\WWW\www.haohongdz.com\common.php")
06     $config = dirname(__FILE__) . '/protected/config/main.php';
07 }
08 
09 
10 $globals = dirname(__FILE__) . '/protected/globals.php';
11 require_once('./common.php');
12 
13 
14 
15 
16 function isMobile()
2024-03-19 11:36:21 Apache/2.4.23 (Win32) OpenSSL/1.0.2j PHP/5.4.45 Yii Framework/1.1.16