mihaildev / yii2-backend
The Backend extension for the Yii2 framework
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-10-26 20:20:37 UTC
README
The Backend extension for the Yii2 framework
Config file.
'preload'=>['backend'], ... 'components' => [ ... 'backend' => [ 'class' => 'mihaildev\backend\Component', 'onBackend' => function(){ Yii::$app->user->loginUrl = ['/backend/login']; }, 'onFrontend' => function(){ Yii::$app->user->loginUrl = ['/site/login']; }, ], ... ]
Controller (only for backend)
class SomeController extends Controller implements BackendControllerInterface{ }