CException

NewsController cannot find the requested view "index_en".

/home/ilpalegno/yii/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/ilpalegno/htdocs/protected/controllers/NewsController.php(15): CController->render("index_en", array("news" => array(News, News, News, News, ...), "eventi" => array(Eventi, Eventi, Eventi, Eventi, ...), "pensieri" => array(Pensieri, Pensieri, Pensieri, Pensieri, ...)))
10         $pensieri = Pensieri::model()->findAllByAttributes(array('lingua'=>Yii::app()->session['siteLang']),array('order'=>'RAND()','limit'=>'12'));
11 
12         $this->render('index_'.Yii::app()->session['siteLang'],array(
13             'news'=>$news,
14             'eventi'=>$eventi,
15             'pensieri'=>$pensieri,
16         ));
17     }
18 
19 }
#11
+
 /home/ilpalegno/htdocs/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 12:53:56 Apache/2.4.18 (Ubuntu) Yii Framework/1.1.13