Skip to content

Commit ddeab34

Browse files
aik84fromsamdark
authored andcommitted
Update SiteController.php (#61) [skip ci]
1 parent 8129163 commit ddeab34

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

controllers/SiteController.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
class SiteController extends Controller
1313
{
14+
/**
15+
* @inheritdoc
16+
*/
1417
public function behaviors()
1518
{
1619
return [
@@ -34,6 +37,9 @@ public function behaviors()
3437
];
3538
}
3639

40+
/**
41+
* @inheritdoc
42+
*/
3743
public function actions()
3844
{
3945
return [
@@ -47,11 +53,21 @@ public function actions()
4753
];
4854
}
4955

56+
/**
57+
* Displays homepage.
58+
*
59+
* @return string
60+
*/
5061
public function actionIndex()
5162
{
5263
return $this->render('index');
5364
}
5465

66+
/**
67+
* Login action.
68+
*
69+
* @return string
70+
*/
5571
public function actionLogin()
5672
{
5773
if (!Yii::$app->user->isGuest) {
@@ -67,13 +83,23 @@ public function actionLogin()
6783
]);
6884
}
6985

86+
/**
87+
* Logout action.
88+
*
89+
* @return string
90+
*/
7091
public function actionLogout()
7192
{
7293
Yii::$app->user->logout();
7394

7495
return $this->goHome();
7596
}
7697

98+
/**
99+
* Displays contact page.
100+
*
101+
* @return string
102+
*/
77103
public function actionContact()
78104
{
79105
$model = new ContactForm();
@@ -87,6 +113,11 @@ public function actionContact()
87113
]);
88114
}
89115

116+
/**
117+
* Displays about page.
118+
*
119+
* @return string
120+
*/
90121
public function actionAbout()
91122
{
92123
return $this->render('about');

0 commit comments

Comments
 (0)