CException

CsController 無法找到請求的視圖 "show".

/home/www/salem-logistics/framework/web/CController.php(880)

868     {
869         if(($viewFile=$this->getViewFile($view))!==false)
870         {
871             $output=$this->renderFile($viewFile,$data,true);
872             if($processOutput)
873                 $output=$this->processOutput($output);
874             if($return)
875                 return $output;
876             else
877                 echo $output;
878         }
879         else
880             throw new CException(Yii::t('yii','{controller} cannot find the requested view "{view}".',
881                 array('{controller}'=>get_class($this), '{view}'=>$view)));
882     }
883 
884     /**
885      * Renders a named clip with the supplied parameters.
886      * This is similar to directly accessing the {@link clips} property.
887      * The main difference is that it can take an array of named parameters
888      * which will replace the corresponding placeholders in the clip.
889      * @param string $name the name of the clip
890      * @param array $params an array of named parameters (name=>value) that should replace
891      * their corresponding placeholders in the clip
892      * @param boolean $return whether to return the clip content or echo it.

Stack Trace

#1
+
 /home/www/salem-logistics/protected/controllers/CsController.php(295): CController->render("show", array("models" => null, "model" => news, "class" => columncate, "columncate" => array(columncate, columncate, columncate, columncate, ...)))
290         $this->cate_id = $model->cate_id;
291         $class=$this->getcolumncate();
292         $columncate=$this->showcate();
293         $this->render('show',array('models'=>$models,
294             'model'=>$model,'class'=>$class,'columncate'=>$columncate
295         ));
296     }
297     
298     public function getcolumncate(){
299         return columncate::model()->findbyPk($this->cate_id);
300     }
#9
+
 /home/www/salem-logistics/index.php(8): CApplication->run()
3 $yii=dirname(__FILE__).'/framework/yii.php';
4 $config=dirname(__FILE__).'/protected/config/main.php';
5 defined('YII_DEBUG') or define('YII_DEBUG',true);
6 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
7 require_once($yii);
8 Yii::createWebApplication($config)->run();
9 ?>
2024-03-29 15:05:43 Apache/2.2.22 (Debian) Yii Framework/1.1.10