File tree Expand file tree Collapse file tree 1 file changed +13
-58
lines changed Expand file tree Collapse file tree 1 file changed +13
-58
lines changed Original file line number Diff line number Diff line change 10
10
11
11
class SiteController extends Controller
12
12
{
13
- public function behaviors ()
14
- {
15
- return [
16
- 'access ' => [
17
- 'class ' => AccessControl::className (),
18
- 'only ' => ['logout ' ],
19
- 'rules ' => [
20
- [
21
- 'actions ' => ['logout ' ],
22
- 'allow ' => true ,
23
- 'roles ' => ['@ ' ],
24
- ],
25
- ],
26
- ],
27
- 'verbs ' => [
28
- 'class ' => VerbFilter::className (),
29
- 'actions ' => [
30
- 'logout ' => ['post ' ],
31
- ],
32
- ],
33
- ];
34
- }
35
-
36
- public function actions ()
37
- {
38
- return [
39
- 'error ' => [
40
- 'class ' => 'yii\web\ErrorAction ' ,
41
- ],
42
- 'captcha ' => [
43
- 'class ' => 'yii\captcha\CaptchaAction ' ,
44
- 'fixedVerifyCode ' => YII_ENV_TEST ? 'testme ' : null ,
45
- ],
46
- ];
47
- }
48
-
49
- public function actionIndex ()
50
- {
51
-
52
- }
53
-
54
- public function actionContact ()
55
- {
56
- $ model = new ContactForm ();
57
- if ($ model ->load (Yii::$ app ->request ->post ()) && $ model ->contact (Yii::$ app ->params ['adminEmail ' ])) {
58
- Yii::$ app ->session ->setFlash ('contactFormSubmitted ' );
59
- return $ this ->refresh ();
60
- } else {
61
- return $ this ->render ('contact ' , [
62
- 'model ' => $ model ,
63
- ]);
64
- }
65
- }
66
-
67
- public function actionAbout ()
68
- {
69
- return $ this ->render ('about ' );
70
- }
13
+ public function actions ()
14
+ {
15
+ return [
16
+ 'error ' => [
17
+ 'class ' => 'yii\web\ErrorAction ' ,
18
+ ],
19
+ ];
20
+ }
21
+
22
+ public function actionIndex ()
23
+ {
24
+
25
+ }
71
26
}
You can’t perform that action at this time.
0 commit comments