CHttpException

Page Not Found

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

182     }
183 
184     public function actionView($slug)
185     {
186         $ExhibitionModel = new ExhibitionModel();
187         $AreaModel = new AreaModel();
188         $TemplateModel = new TemplateModel();
189         $exhibition = $ExhibitionModel->find_one(array(
190             'slug' => $slug
191         ));
192 
193         if (!$exhibition) {
194             throw new CHttpException(404, 'Page Not Found');
195         }
196 
197         // $LogModel = new LogModel();
198         // $LogModel->insert(array(
199         //     'title' => 'Người dùng truy cập vào không gian 1 lúc ' . date('d/m/Y H:i:s'),
200         //     'description' => '',
201         //     'old_data' => '',
202         //     'new_data' => '',
203         //     'object_type' => 'access-exhibition-1',
204         //     'object_id' => $exhibition['id'],
205         //     'ip_address' => $_SERVER['REMOTE_ADDR'],
206         //     '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-28 17:47:30 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.16