codefire / cfusermgmt
此包最新版本(1.0.0)没有提供许可证信息。
Yii框架的用户模块
1.0.0
2015-12-08 11:55 UTC
Requires
- php: ^5.4
This package is not auto-updated.
Last update: 2024-09-18 19:14:57 UTC
README
需求
- 带有高级应用模板的Yii 2
- 初始化应用为开发模式
- Php 5.4+
- MySql 5.6+
安装'cfusermgmt'插件的步骤
- 在vendor文件夹中创建"codefire/cfusermgmt"文件夹
- 解压到cfusermgmt文件夹(给予权限,初始化应用)
- 在application's frontend/web/index.php中添加如下代码:require(DIR . '/../../vendor/codefire/cfusermgmt/config/main.php'), before require(DIR . '/../config/main-local.php'); // 在此行之前
在$application = new yii\web\Application($config);之后添加:require(DIR . '/../../vendor/codefire/cfusermgmt/config/constants.php');
-
- 删除common/model/User.php
- 从application's frontend/config/main.php中移除user组件
-
在frontend/web创建htaccess文件
源代码应为:Options -MultiViews RewriteEngine On #RewriteBase /path/to/app RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]Order allow,deny allow from all
-
在"vendor/codefire/cfusermgmt/config/main.php"中将SITE_URL更改为您的当前URL:'@SITE_URL' => "Your Url Goes Here",例如:'@SITE_URL' => "https:///plugin_yii"
备注
- 请确保您已经导入数据库db.sql文件
- 管理员凭据(codefire/111111)有用的URL示例
- 前端URL(https:///BaseFolderName/advanced/frontend/web/usermgmt/user/login)
- 后端URL(https:///BaseFolderName/advanced/backend/web/usermgmt/user/login)
您也可以使用composer进行安装
composer require codefire/cfusermgmt