CHttpException

Page Not Found

/var/www/html/protected/controllers/ExhibitionController.php(129)

117     }
118 
119     public function actionArea($slug)
120     {
121         $ExhibitionModel = new ExhibitionModel();
122         $AreaModel = new AreaModel();
123         $TemplateModel = new TemplateModel();
124         $exhibition = $ExhibitionModel->find_one(array(
125             'slug' => $slug
126         ));
127 
128         if (!$exhibition) {
129             throw new CHttpException(404, 'Page Not Found');
130         }
131 
132         $LogModel = new LogModel();
133         $LogModel->insert(array(
134             'title' => 'Người dùng truy cập vào không gian 2 lúc ' . date('d/m/Y H:i:s'),
135             'description' => '',
136             'old_data' => '',
137             'new_data' => '',
138             'object_type' => 'access-exhibition-2',
139             'object_id' => $exhibition['id'],
140             'ip_address' => $_SERVER['REMOTE_ADDR'],
141             'created_date' => time(),

Stack Trace

#9
+
 /var/www/html/index.php(18): CApplication->run()
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 set_time_limit(0);
16 
17 require_once($yii);
18 Yii::createWebApplication($config)->run();
19 
20 ini_set('display_errors', '1');
21 ini_set('display_startup_errors', '1');
22 error_reporting(E_ALL);
2024-03-29 16:46:28 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.16