CHttpException

Page Not Found

/var/www/html/protected/controllers/AreaController.php(25)

13         $AreaModel = new AreaModel();
14         $ExhibitionModel = new ExhibitionModel();
15         $StoreModel = new StoreModel();
16         $Hour_storeModel = new Hour_storeModel();
17         $HourModel = new HourModel();
18         $TemplateModel = new TemplateModel();
19 
20         $area = $AreaModel->find_one(array(
21             'slug' => $slug
22         ));
23 
24         if (!$area) {
25             throw new CHttpException(404, 'Page Not Found');
26         }
27 
28         $hour_id = intval(Yii::app()->request->getParam('hour_id'));
29         $hour_stores = array();
30         $store_ids = array();
31 
32         if ($hour_id) {
33             $store_ids = array(-1);
34             $hour_stores = $Hour_storeModel->find(array('hour_id' => $hour_id));
35         }
36 
37         foreach ($hour_stores as $hour_store) {

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:38:21 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.16