PHP notice

Undefined variable: _SESSION

/home/atrifonov/dev/bfm/protected/controllers/DocumentsController.php(39)

27         return [
28             // страница поиска
29             'search' => 'DocumentListSearchAction',
30         ];
31     }
32 
33     /**
34      * Список всех материалов сайта с возможностью фильтрации
35      * (новости | статьи)
36      */
37     public function actionIndex()
38     {
39         echo '<br><br><br><br><br><br><br><br><br><br><br><br><br>$_SESSION=<pre>', var_dump($_SESSION), "</pre>=<br>\n";
40 
41         if(isset($_GET['type']) && $_GET['type'] === 'podcast') {
42             Yii::app()->getRequest()->redirect('/podcast', true, 301);
43         }
44 
45         $count = null;
46         $listParams = $this->prepareListParams($_GET);
47         $documentPageNumber = (int) Yii::app()->getRequest()->getQuery('page', 1);
48         $page = (int) Yii::app()->getRequest()->getQuery('page', 0);
49         if(!empty($page)) {
50             $this->canonicalPageUrl['page'] = $page;
51         }

Stack Trace

#10
+
 /home/atrifonov/dev/bfm/www/index.php(210): CApplication->run()
205     require_once('yiilite.php');
206 }
207 
208 $application = Yii::createWebApplication($config);
209 $application->id = 'bfm';
210 $application->run();
2024-03-28 15:23:09 nginx/1.16.0 Yii Framework/1.1.21