CHttpException

The requested page does not exist.

/home/bbhos/domains/bbhos.com/public_html/protected/controllers/SiteController.php(52)

40             'cert' => ps::getNewsFromCategory(3, 12),
41             'ita' => ps::getNewsFromCategory(11, 5),
42             'ita2565' => ps::getNewsFromCategory(17, 5),
43             'ita2566' => ps::getNewsFromCategory(18, 5),
44 
45         ));
46     }
47 
48     public function actionView($id)
49     {
50         $model = News::model()->findByPk($id);
51         if ($model === null)
52             throw new CHttpException(404, 'The requested page does not exist.');
53 
54         $model->n_views += 1;
55         $model->save();
56 
57         $this->render('view', array(
58             'model' => $model
59         ));
60     }
61 
62     public function actionCategory($id)
63     {
64         $category = Category::model()->findByPk($id);

Stack Trace

#9
+
 /home/bbhos/domains/bbhos.com/public_html/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 Yii::createWebApplication($config)->run();
2024-03-29 21:25:16 Apache/2 Yii Framework/1.1.21