Skip to content

Commit b2b55b3

Browse files
committed
del trash
1 parent 07764a0 commit b2b55b3

File tree

1 file changed

+13
-58
lines changed

1 file changed

+13
-58
lines changed

rest/controllers/SiteController.php

Lines changed: 13 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,17 @@
1010

1111
class SiteController extends Controller
1212
{
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+
}
7126
}

0 commit comments

Comments
 (0)