@@ 19-39 (lines=21) @@ | ||
16 | /** |
|
17 | * @return array |
|
18 | */ |
|
19 | public function behaviors() |
|
20 | { |
|
21 | return ArrayHelper::merge(parent::behaviors(), [ |
|
22 | 'access' => [ |
|
23 | 'class' => AccessControl::class, |
|
24 | 'rules' => [ |
|
25 | [ |
|
26 | 'allow' => true, |
|
27 | 'actions' => ['index'], |
|
28 | 'roles' => ['?', '@'], |
|
29 | ], |
|
30 | ], |
|
31 | ], |
|
32 | 'verbs' => [ |
|
33 | 'class' => VerbFilter::class, |
|
34 | 'actions' => [ |
|
35 | 'index' => ['get'], |
|
36 | ], |
|
37 | ], |
|
38 | ]); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Displays about page. |
@@ 19-39 (lines=21) @@ | ||
16 | /** |
|
17 | * @return array |
|
18 | */ |
|
19 | public function behaviors() |
|
20 | { |
|
21 | return ArrayHelper::merge(parent::behaviors(), [ |
|
22 | 'access' => [ |
|
23 | 'class' => AccessControl::class, |
|
24 | 'rules' => [ |
|
25 | [ |
|
26 | 'allow' => true, |
|
27 | 'actions' => ['index'], |
|
28 | 'roles' => ['?', '@'], |
|
29 | ], |
|
30 | ], |
|
31 | ], |
|
32 | 'verbs' => [ |
|
33 | 'class' => VerbFilter::class, |
|
34 | 'actions' => [ |
|
35 | 'index' => ['get'], |
|
36 | ], |
|
37 | ] |
|
38 | ]); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * Displays homepage. |
@@ 22-42 (lines=21) @@ | ||
19 | /** |
|
20 | * @return array |
|
21 | */ |
|
22 | public function behaviors() |
|
23 | { |
|
24 | return ArrayHelper::merge(parent::behaviors(), [ |
|
25 | 'access' => [ |
|
26 | 'class' => AccessControl::class, |
|
27 | 'rules' => [ |
|
28 | [ |
|
29 | 'allow' => true, |
|
30 | 'actions' => ['view'], |
|
31 | 'roles' => ['?', '@'], |
|
32 | ], |
|
33 | ], |
|
34 | ], |
|
35 | 'verbs' => [ |
|
36 | 'class' => VerbFilter::class, |
|
37 | 'actions' => [ |
|
38 | 'view' => ['get'], |
|
39 | ], |
|
40 | ], |
|
41 | ]); |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * Displays Ppage. |
@@ 20-40 (lines=21) @@ | ||
17 | /** |
|
18 | * @return array |
|
19 | */ |
|
20 | public function behaviors() |
|
21 | { |
|
22 | return ArrayHelper::merge(parent::behaviors(), [ |
|
23 | 'access' => [ |
|
24 | 'class' => AccessControl::class, |
|
25 | 'rules' => [ |
|
26 | [ |
|
27 | 'allow' => true, |
|
28 | 'actions' => ['view'], |
|
29 | 'roles' => ['?', '@'], |
|
30 | ], |
|
31 | ], |
|
32 | ], |
|
33 | 'verbs' => [ |
|
34 | 'class' => VerbFilter::class, |
|
35 | 'actions' => [ |
|
36 | 'view' => ['get'], |
|
37 | ], |
|
38 | ], |
|
39 | ]); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * Displays product page. |
@@ 21-40 (lines=20) @@ | ||
18 | /** |
|
19 | * @inheritdoc |
|
20 | */ |
|
21 | public function behaviors() |
|
22 | { |
|
23 | return ArrayHelper::merge(parent::behaviors(), [ |
|
24 | 'access' => [ |
|
25 | 'class' => AccessControl::class, |
|
26 | 'rules' => [ |
|
27 | [ |
|
28 | 'allow' => true, |
|
29 | 'actions' => ['reg', 'login', 'captcha'], |
|
30 | 'roles' => ['?'], |
|
31 | ], |
|
32 | [ |
|
33 | 'allow' => true, |
|
34 | 'actions' => ['logout'], |
|
35 | 'roles' => ['@'], |
|
36 | ], |
|
37 | ], |
|
38 | ], |
|
39 | ]); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @inheritdoc |