From 9f8961870d2beb89c830d5199101553b1425780e Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 17 Dec 2019 09:00:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9site=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=EF=BC=8C=E6=96=B9=E4=BE=BF=E9=80=9A=E8=BF=87=E6=9D=83?= =?UTF-8?q?=E9=99=90=E8=8E=B7=E5=8F=96=E6=96=B9=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/controllers/SiteController.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/backend/controllers/SiteController.php b/backend/controllers/SiteController.php index 796c0f6..4e96599 100755 --- a/backend/controllers/SiteController.php +++ b/backend/controllers/SiteController.php @@ -2,6 +2,7 @@ namespace backend\controllers; +use backend\logic\PermissionManager; use Yii; use yii\web\Controller; use yii\filters\VerbFilter; @@ -11,6 +12,7 @@ use backend\models\CategorySearch; /** * Site controller + * DESCRIBE 网站基本权限 DESCRIBE */ class SiteController extends Controller { @@ -69,6 +71,7 @@ class SiteController extends Controller { * Login action. * * @return string + * ACTION 登录 ACTION */ public function actionLogin() { @@ -94,6 +97,7 @@ class SiteController extends Controller { * Logout action. * * @return string + * ACTION 登出 ACTION */ public function actionLogout() { Yii::$app->user->logout(); @@ -101,12 +105,4 @@ class SiteController extends Controller { return $this->goHome(); } - public function actionTest() { - $searchModel = new CategorySearch(); - return $this->render('test', [ - 'name' => 'blobt', - 'model' => $searchModel - ]); - } - }