The preferred way to install this extension is through composer.
composer require dmstr/yii2-backend-module
- Requires
loveorigami/yii2-notification-wrapper
Add module to application configuration
'backend' => [
'class' => 'dmstr\modules\backend\Module',
'layout' => '@backend/views/layouts/main',
],
'modules' => [
'user' => [
'controllerMap' => [
'security' => [
'class' => Da\User\Controller\SecurityController::class,
'layout' => '@backend/views/layouts/login'
],
'recovery' => [
'class' => Da\User\Controller\RecoveryController::class,
'layout' => '@backend/views/layouts/login'
],
'registration' => [
'class' => Da\User\Controller\RegistrationController::class,
'layout' => '@backend/views/layouts/login'
]
]
]
]
context.menuItems
menu items to be shown, i.e. used bydmstr/yii2-prototype-module
from settings
module
backend.adminlte.skin
defaultblack-light
backend.adminlte.sidebar
defaultsidebar-mini
backend.adminlte.navBarIcon
defaultheart
frontend.backendWidget
defaultmodal
frontend.backendButtonsInModal
(experimental)