CHttpException

The requested page does not exist.

/home/virtwww/w_imperia-pane-ru_9e14c598/http/protected/components/ModuleUserController.php(119)

107         }
108         return $this->_model;
109     }
110 
111     public function loadModelWith($with) {
112         if($this->_model===null) {
113             if(isset($_GET['id'])) {
114                 $model = new $this->modelName;
115                 $this->_model = $model->with($with)->findByPk($_GET['id']); //findByPk($_GET['id']);
116                 $this->getHeaders($this->_model);
117             }
118             if($this->_model===null){
119                 throw new CHttpException(404,'The requested page does not exist.');
120             }
121         }
122         return $this->_model;
123     }
124 
125 
126     protected function performAjaxValidation($model){
127         if(isset($_POST['ajax']) && $_POST['ajax']===$this->modelName.'-form'){
128             echo CActiveForm::validate($model);
129             Yii::app()->end();
130         }
131     }

Stack Trace

#0
+
 /home/virtwww/w_imperia-pane-ru_9e14c598/http/protected/modules/catalog/controllers/MainController.php(76): ModuleUserController->loadModelWith(array("catalogCategory", "catalogImages"))
71         ));
72     }
73 
74     public function actionView($id){
75         $this->render('view', array(
76             'model' =>  $this->loadModelWith(array('catalogCategory', 'catalogImages')),
77         ));
78     }
79 }
#15
+
 /home/virtwww/w_imperia-pane-ru_9e14c598/http/index.php(18): CApplication->run()
13 
14 define('ALREADY_INSTALL_FILE', ROOT_PATH . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR
15                                 . 'runtime' . DIRECTORY_SEPARATOR . 'already_install');
16 
17 require_once($yii);
18 Yii::createWebApplication($config)->run();
2024-03-19 07:47:22 Apache Yii Framework/1.1.17