Skip to content

pranjalcodefire/yii-usermgmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirments:

  • Yii 2 with advanced application template
  • Init your application for development mode
  • Php 5.4+
  • MySql 5.6+

Steps To install the 'cfusermgmt' plugin:

  1. Create folder "codefire/cfusermgmt" in vendor folder
  2. Extract into cfusermgmt folder (Give permission, init application)
  3. add in application's frontend/web/index.php require(DIR . '/../../vendor/codefire/cfusermgmt/config/main.php'), before require(DIR . '/../config/main-local.php'); // JUST BEFORE THIS LINE

add after $application = new yii\web\Application($config); require(DIR . '/../../vendor/codefire/cfusermgmt/config/constants.php');

    • Delete common/model/User.php
    • Remove user component from application's frontend/config/main.php
  1. create htaccess in frontend/web
    Source code should be: Options -MultiViews RewriteEngine On #RewriteBase /path/to/app RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]

     Order allow,deny
     allow from all
    
  2. Change SITE_URL to your Current URL on "vendor/codefire/cfusermgmt/config/main.php" '@SITE_URL' => "Your Url Goes Here" Like: '@SITE_URL' => "http://localhost/plugin_yii"

NOTES:

You can also install Using composer:

composer require codefire/cfusermgmt