CHttpException

Page not found

/var/www/vhosts/itcen.ir/httpdocs/public/protected/modules/pages/controllers/Page_defaultController.php(55)

43     }
44 
45     public function actionShowpage($id = 1, $title = "")
46     {
47         $this->layout = '//layouts/users/rtl/main';
48          $criteria = new CDbCriteria;
49         $criteria->condition = 'samelang=:id ';
50         $criteria->params = array('id'=>(int) $id);
51         $model= PageContents::model()->find($criteria);
52         $gtid=0;
53         
54         if ($model->del_flag==0) {
55             throw new CHttpException(404, 'Page not found');
56         }
57         if ($model->active_flag==0 && Yii::app()->user->isGuest) {
58             throw new CHttpException(404, 'Page not found');
59         }
60 
61         ++$model->visit;
62         $visitor = PageLogs::model()->find(
63             "user_ip=:user_ip and page_id=:page_id",
64             array(":user_ip" => Yii::app()->params['ip'],":page_id" =>$model->id)
65         );
66 
67         if (!$visitor) {// die("visitor");

Stack Trace

#9
+
 /var/www/vhosts/itcen.ir/httpdocs/public/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-28 16:22:24 Apache Yii Framework/1.1.20