https://github.com/developeruz/easyii-user-module
User module for EasyiiCMS
https://github.com/developeruz/easyii-user-module
Last synced: 2 months ago
JSON representation
User module for EasyiiCMS
- Host: GitHub
- URL: https://github.com/developeruz/easyii-user-module
- Owner: developeruz
- License: mit
- Created: 2017-02-01T17:55:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T07:27:33.000Z (over 8 years ago)
- Last Synced: 2025-04-04T18:03:10.061Z (3 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
User module for EasyiiCMS
=========================This module allows add [User module](http://github.com/dektrium/yii2-user) to [Easy yii2 cms](http://github.com/noumo/easyii)
## Installation guide
```bash
$ php composer.phar require developeruz/easyii-user-module "dev-master"
```Replace last line in `app/config/web.php`
```php
return array_merge_recursive($config, require($webroot . '/vendor/noumo/easyii/config/easyii.php'));
```
with
```php
$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
php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations
```Register and confirm at least one user (you can do it via [console command](https://github.com/dektrium/yii2-user/blob/master/docs/console.md))
#### Activate module
Add to `app/config/params.php` list of admin users for the User module
```php
'admins' => ['admin']
```
Note: only users with username mentioned in the list above would have access to the User Module.Run migrations
```php
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](LICENSE.md) for more information.