mihaildev / yii2-flexible-controller
Yii2 Flexible Controller
0.0.1
2016-05-13 14:53 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-10 01:24:08 UTC
README
Универсальный контроллер для подключения standalone actions
Установка
"mihaildev/yii2-flexible-controller": "*"
Настройка и Использование
'controllerMap' => [ 'auth' => [ 'class' => 'mihaildev\flexibleController\Controller', 'behaviors' => [ 'access' => [ 'class' => 'yii\filters\AccessControl', 'only' => ['logout'], 'rules' => [ [ 'actions' => ['logout'], 'allow' => true, 'roles' => ['@'], ], ], ], 'verbs' => [ 'class' => 'yii\filters\VerbFilter', 'actions' => [ 'logout' => ['post'], ], ], ], 'actions' => [ 'login' => 'standalone\action\LogIn', 'logout' => 'standalone\action\LogOut', ] ] ],