CHttpException

The requested page does not exist.

/mt/xvda4/u_f_history/historiography/www/protected/modules/galleries/controllers/DefaultController.php(203)

191     {
192         $model=Galleries::model()->findByPk($id);
193         if($model===null)
194             throw new CHttpException(404,'The requested page does not exist.');
195         return $model;
196     }
197     
198     
199     public function loadModelByUrl($url_name)
200     {
201         $model=Galleries::model()->findByAttributes(array('url_name' => $url_name, 'language' => Yii::app()->language));
202         if($model===null)
203             throw new CHttpException(404,'The requested page does not exist.');
204         return $model;
205     }
206 
207     /**
208      * Performs the AJAX validation.
209      * @param Galleries $model the model to be validated
210      */
211     protected function performAjaxValidation($model)
212     {
213         if(isset($_POST['ajax']) && $_POST['ajax']==='gallery-form')
214         {
215             echo CActiveForm::validate($model);

Stack Trace

#0
+
 /mt/xvda4/u_f_history/historiography/www/protected/modules/galleries/controllers/DefaultController.php(51): DefaultController->loadModelByUrl("vidkrittya-vistavki-kurbas-u-harkovi-Ermilovtsentr")
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-29 01:12:06 Apache Yii Framework/1.1.17