CException

StruttureController non ha potuto trovare la vista "404" richiesta.

/var/www/clients/client68/web136/web/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
+
 /var/www/clients/client68/web136/web/protected/controllers/StruttureController.php(43): CController->render()
38         Yii::app()->getClientScript()->registerCoreScript('fancybox');
39 
40         $struttura = Strutture::model()->findByAttributes(['alias' => $name, 'enabled' => 1]);
41 
42         if (!$struttura) {
43             $this->render('404');
44             return;
45         }
46         $this->pageTitle = $struttura->name;
47         $this->bodyCSS = 'property-details-page';
48         $this->headerBgd = $struttura->_mainImage->getImageUrl();
#2
+
 /var/www/clients/client68/web136/web/protected/controllers/StruttureController.php(13): StruttureController->struttura()
08 
09     public function missingAction($actionID)
10     {
11         $struttura = Strutture::model()->findByAttributes(['alias' => $actionID]);
12         if ($struttura) {
13             $this->struttura($actionID);
14         } else {
15             parent::missingAction($actionID);
16         }
17     }
18 
#7
+
 /var/www/clients/client68/web136/web/index.php(13): CApplication->run()
08    defined('YII_DEBUG') or define('YII_DEBUG', true);
09    defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
10 // }
11 
12 require_once ($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 15:01:24 Apache Yii Framework/1.1.16