codefire / cfusermgmt

此包最新版本(1.0.0)没有提供许可证信息。

Yii框架的用户模块

安装: 12

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 1

开放问题: 0

类型:yii2-extension

1.0.0 2015-12-08 11:55 UTC

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'插件的步骤

  1. 在vendor文件夹中创建"codefire/cfusermgmt"文件夹
  2. 解压到cfusermgmt文件夹(给予权限,初始化应用)
  3. 在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组件
  1. 在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
    
  2. 在"vendor/codefire/cfusermgmt/config/main.php"中将SITE_URL更改为您的当前URL:'@SITE_URL' => "Your Url Goes Here",例如:'@SITE_URL' => "https:///plugin_yii"

备注

您也可以使用composer进行安装

composer require codefire/cfusermgmt