developeruz / easyii-user-module
User module for EasyiiCMS
Installs: 186
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- dektrium/yii2-user: ^0.9.12
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-24 03:45:32 UTC
README
This module allows add User module to Easy yii2 cms
Installation guide
$ php composer.phar require developeruz/easyii-user-module "dev-master"
Replace last line in app/config/web.php
return array_merge_recursive($config, require($webroot . '/vendor/noumo/easyii/config/easyii.php'));
with
$config = array_merge_recursive($config, require($webroot . '/vendor/developeruz/easyii-user-module/config/user_module_config.php'), require($webroot . '/vendor/noumo/easyii/config/easyii.php')); $config['components']['user'] = [ 'identityClass' => 'developeruz\easyii_user\models\User' ]; return $config;
If you don't have installed User module before
Run
php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations
Register and confirm at least one user (you can do it via console command)
Activate module
Add to app/config/params.php
list of admin users for the User module
'admins' => ['admin']
Note: only users with username mentioned in the list above would have access to the User Module.
Run migrations
php yii migrate/up --migrationPath=@vendor/developeruz/easyii-user-module/migrations
And login to EasyiiCMS admin panel with the user from the User module.
License
The MIT License (MIT). Please see License File for more information.