|
|
@ -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 |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
|
} |