CHttpException

/var/www/agada/data/www/agada.pro/protected/controllers/SiteController.php(40)

28 
29 
30     /*
31      * Управление разделами.
32      */
33     public function actionSection($path)
34     {
35         //$this->layout = '//layouts/no_header';
36 
37         $model = Section::model()->getItemByPath($path);
38 
39         if (!$model || !$model->vis) {
40             throw new CHttpException(404);
41         }
42 
43         if(Y::getGet('path') != $model->getPath()){
44             $this->redirect($model->getUrl());
45         }
46 
47         Section::$current = $model->id;
48 
49         $this->blocks = $model->side_blocks;
50 
51         //Установка meta-данных
52         $this->setMeta($model);

Stack Trace

#9
+
 /var/www/agada/data/www/agada.pro/index.php(17): CApplication->run()
12     ini_set('display_errors','On');
13     error_reporting(E_ALL);
14 }
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-19 12:38:05 Apache/2.4.56 (Debian) Yii Framework/1.1.16