Blame view

frontend/controllers/ProjectsController.php 800 Bytes
eb7e82fb   Administrator   29.02.16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <?php

      namespace frontend\controllers;

  

      use yii\filters\AccessControl;

      use yii\web\Controller;

  

      class ProjectsController extends Controller

      {

          public function behaviors()

          {

              return [

                  'access' => [

                      'class' => AccessControl::className(),

                      'rules' => [

                          [

                              //'actions' => ['cabinet','change-password', 'bookmarks', 'projects'],

                              'allow' => true,

                              'roles' => [ '@' ],

                          ],

                      ],

                  ],

              ];

          }

  

          public function actionIndex()

          {

              return $this->render('projects');

          }

989c83b0   Yarik   test
29
      }