CHttpException

The requested page does not exist.

/home/bandungkab-dishub/htdocs/dishub.bandungkab.go.id/protected/controllers/NewsController.php(64)

52             $model->save();
53         }
54         $this->render('view_front',array(
55             'model'=>$this->loadModel($id),
56             ));            
57     }
58 
59     public function actionPost($url)
60     {
61         $this->layout="frontend_post";
62         $model=Post::model()->findByAttributes(array('url'=>$url));
63         if($model===null){
64             throw new CHttpException(404,'The requested page does not exist.');
65         }else{
66             $model->views += 1;
67             $model->save();
68         }
69         $this->render('view_front',array(
70             'model'=>$this->loadPosting($url),
71             ));            
72     }    
73 
74     public function actionCategory($name)
75     {
76         $this->layout="frontend_post";

Stack Trace

#14
+
 /home/bandungkab-dishub/htdocs/dishub.bandungkab.go.id/index.php(16): CApplication->run()
11 
12 // remove the following line when in production mode
13 defined('YII_DEBUG') or define('YII_DEBUG',true);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-28 17:52:39 nginx/1.21.4 Yii Framework/1.1.29