developeruz / easyii-user-module
EasyiiCMS 的用户模块
dev-master
2017-02-03 07:27 UTC
Requires
- dektrium/yii2-user: ^0.9.12
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-15 02:46:26 UTC
README
此模块允许将 用户模块 添加到 Easy yii2 cms
安装指南
$ php composer.phar require developeruz/easyii-user-module "dev-master"
替换 app/config/web.php 文件的最后一行
return array_merge_recursive($config, require($webroot . '/vendor/noumo/easyii/config/easyii.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;
如果您之前没有安装用户模块
运行
php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations
注册并确认至少一个用户(您可以通过 控制台命令 来完成)
激活模块
将用户模块的管理员用户列表添加到 app/config/params.php
'admins' => ['admin']
注意:只有用户名在上述列表中提到的用户才能访问用户模块。
运行迁移
php yii migrate/up --migrationPath=@vendor/developeruz/easyii-user-module/migrations
然后使用用户模块中的用户登录 EasyiiCMS 管理面板。
许可协议
MIT 许可协议 (MIT)。有关更多信息,请参阅 许可文件。