CHttpException

The requested page does not exist.

/mt/xvda4/u_f_history/historiography/www/protected/modules/news/controllers/DefaultController.php(216)

204     {
205         $model=News::model()->findByPk($id);
206         if($model===null)
207             throw new CHttpException(404,'The requested page does not exist.');
208         return $model;
209     }
210     
211     
212     public function loadModelByUrl($url_name)
213     {
214         $model=News::model()->findByAttributes(array('url_name' => $url_name, 'language' => Yii::app()->language));
215         if($model===null)
216             throw new CHttpException(404,'The requested page does not exist.');
217         return $model;
218     }
219 
220     /**
221      * Performs the AJAX validation.
222      * @param News $model the model to be validated
223      */
224     protected function performAjaxValidation($model)
225     {
226         if(isset($_POST['ajax']) && $_POST['ajax']==='news-form')
227         {
228             echo CActiveForm::validate($model);

Stack Trace

#0
+
 /mt/xvda4/u_f_history/historiography/www/protected/modules/news/controllers/DefaultController.php(51): DefaultController->loadModelByUrl("-vitaemo-sIposohova-z-nagorodjennyam-gramotoyu-tsdnta-ukraini")
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 16:07:38 Apache Yii Framework/1.1.17