File tree 1 file changed +31
-0
lines changed 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class SiteController extends Controller
13
13
{
14
+ /**
15
+ * @inheritdoc
16
+ */
14
17
public function behaviors ()
15
18
{
16
19
return [
@@ -34,6 +37,9 @@ public function behaviors()
34
37
];
35
38
}
36
39
40
+ /**
41
+ * @inheritdoc
42
+ */
37
43
public function actions ()
38
44
{
39
45
return [
@@ -47,11 +53,21 @@ public function actions()
47
53
];
48
54
}
49
55
56
+ /**
57
+ * Displays homepage.
58
+ *
59
+ * @return string
60
+ */
50
61
public function actionIndex ()
51
62
{
52
63
return $ this ->render ('index ' );
53
64
}
54
65
66
+ /**
67
+ * Login action.
68
+ *
69
+ * @return string
70
+ */
55
71
public function actionLogin ()
56
72
{
57
73
if (!Yii::$ app ->user ->isGuest ) {
@@ -67,13 +83,23 @@ public function actionLogin()
67
83
]);
68
84
}
69
85
86
+ /**
87
+ * Logout action.
88
+ *
89
+ * @return string
90
+ */
70
91
public function actionLogout ()
71
92
{
72
93
Yii::$ app ->user ->logout ();
73
94
74
95
return $ this ->goHome ();
75
96
}
76
97
98
+ /**
99
+ * Displays contact page.
100
+ *
101
+ * @return string
102
+ */
77
103
public function actionContact ()
78
104
{
79
105
$ model = new ContactForm ();
@@ -87,6 +113,11 @@ public function actionContact()
87
113
]);
88
114
}
89
115
116
+ /**
117
+ * Displays about page.
118
+ *
119
+ * @return string
120
+ */
90
121
public function actionAbout ()
91
122
{
92
123
return $ this ->render ('about ' );
You can’t perform that action at this time.
0 commit comments