2017 © Pedro Peláez
 

yii2-extension users

Users module

image

bulldozer/users

Users module

  • Friday, June 8, 2018
  • by webdragons
  • Repository
  • 1 Watchers
  • 0 Stars
  • 244 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

Users module

Модуль пользователей для Bulldozer CMF, (*1)

Установка

Подключить в composer:, (*2)

composer require bulldozer/users "*"

Добавить в backend\config\main.php:, (*3)

return [
    'components' => [
        'menu' => [
            'class' => 'bulldozer\components\BackendMenu',
            'modules' => [
                'bulldozer\users\backend\Module'
            ]
        ],
    ],
    'modules' => [
        'users' => [
            'class' => 'bulldozer\users\backend\Module',
        ],
    ],
]

Добавить в frontend\config\main.php:, (*4)

return [
    'modules' => [
        'users' => [
            'class' => 'bulldozer\users\frontend\Module',
        ],
    ],
]

Добавить в console\config\main.php:, (*5)

return [
    'modules' => [
        'users' => [
            'class' => 'bulldozer\users\console\Module',
        ],
    ],
    'controllerMap' => [
        ...
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                ...
                'bulldozer\users\console\migrations',
                ...
            ],
        ],
        ...
    ],
]

Добавить в common\config\main.php:, (*6)

return [
    ...
    'components' => [
        'authManager' => [
            'class' => 'bulldozer\users\rbac\DbManager',
        ],
    ],
    ...
];

The Versions