CHttpException

The requested page does not exist.

/mt/xvda4/u_f_history/historiography/www/protected/modules/announcements/controllers/DefaultController.php(185)

173     {
174         $model=Announcements::model()->findByPk($id);
175         if($model===null)
176             throw new CHttpException(404,'The requested page does not exist.');
177         return $model;
178     }
179     
180     
181     public function loadModelByUrl($url_name)
182     {
183         $model=Announcements::model()->findByAttributes(array('url_name' => $url_name, 'language' => Yii::app()->language));
184         if($model===null)
185             throw new CHttpException(404,'The requested page does not exist.');
186         return $model;
187     }
188 
189     /**
190      * Performs the AJAX validation.
191      * @param Announcements $model the model to be validated
192      */
193     protected function performAjaxValidation($model)
194     {
195         if(isset($_POST['ajax']) && $_POST['ajax']==='announcements-form')
196         {
197             echo CActiveForm::validate($model);

Stack Trace

#0
+
 /mt/xvda4/u_f_history/historiography/www/protected/modules/announcements/controllers/DefaultController.php(51): DefaultController->loadModelByUrl("zasidannya-gurtka-mistetstvoznavtsiv2020")
46      * @param integer $id the ID of the model to be displayed
47      */
48     public function actionView($url_name)
49     {
50         $this->layout='//layouts/one_column';
51         $model = $this->loadModelByUrl($url_name);
52 
53         $this->render('view',array(
54             'model'=>$model,
55         ));        
56     }
#15
+
 /mt/xvda4/u_f_history/historiography/www/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 $app = Yii::createWebApplication($config)->run();
2024-03-28 22:55:34 Apache Yii Framework/1.1.17