codefire / cfusermgmt
The users module for Yii framework
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: ^5.4
This package is not auto-updated.
Last update: 2025-01-08 20:27:39 UTC
README
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:
- Create folder "codefire/cfusermgmt" in vendor folder
- Extract into cfusermgmt folder (Give permission, init application)
- 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
-
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
-
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:
- make sure you have import database db.sql file
- Admin credentials (codefire/111111) Useful Url example:
- FrontEnd Url (http://localhost/BaseFolderName/advanced/frontend/web/usermgmt/user/login)
- BackEnd Url (http://localhost/BaseFolderName/advanced/backend/web/usermgmt/user/login)
You can also install Using composer:
composer require codefire/cfusermgmt