Download the PHP package uldisn/yii-user without Composer
On this page you can find all versions of the php package uldisn/yii-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download uldisn/yii-user
More information about uldisn/yii-user
Files in uldisn/yii-user
Download uldisn/yii-user
More information about uldisn/yii-user
Files in uldisn/yii-user
Please rate this library. Is it a good library?
Informations about the package yii-user
Yii-User Installation
Download
Download or checkout (SVN/Git) from http://yii-user.2mx.org and unpack files in your protected/modules/user
Git clone
clone git [email protected]:mishamx/yii-user.git
Configure
Change your config main:
return array(
#...
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
'application.modules.user.components.*',
),
#...
'modules'=>array(
#...
'user'=>array(
# encrypting method (php hash function)
'hash' => 'md5',
# send activation email
'sendActivationMail' => true,
# allow access for non-activated users
'loginNotActiv' => false,
# activate user on registration (only sendActivationMail = false)
'activeAfterRegister' => false,
# automatically login from registration
'autoLogin' => true,
# guests allow register
'allowGuestRegister' => true,
# show user list
'showUserList' => true,
# alow to user edit self profile
'allowUserEditProfile' => true,
# registration path
'registrationUrl' => array('/user/registration'),
# recovery password path
'recoveryUrl' => array('/user/recovery'),
# login form path
'loginUrl' => array('/user/login'),
# page after login
'returnUrl' => array('/user/profile'),
# page after logout
'returnLogoutUrl' => array('/user/login'),
),
#...
),
#...
// application components
'components'=>array(
#...
'db'=>array(
#...
'tablePrefix' => 'tbl_',
#...
),
#...
'user'=>array(
// enable cookie-based authentication
'class' => 'WebUser',
),
#...
),
#...
);
Change your config console:
return array(
#...
'modules'=>array(
#...
'user'=>array(
# encrypting method (php hash function)
'hash' => 'md5',
# send activation email
'sendActivationMail' => true,
# allow access for non-activated users
'loginNotActiv' => false,
# activate user on registration (only sendActivationMail = false)
'activeAfterRegister' => false,
# automatically login from registration
'autoLogin' => true,
# registration path
'registrationUrl' => array('/user/registration'),
# recovery password path
'recoveryUrl' => array('/user/recovery'),
# login form path
'loginUrl' => array('/user/login'),
# page after login
'returnUrl' => array('/user/profile'),
# page after logout
'returnLogoutUrl' => array('/user/login'),
),
#...
),
#...
);
Install
Run command: yiic migrate --migrationPath=user.migrations
Input admin login, email and password
All versions of yii-user with dependencies
PHP Build Version
Package Version
The package uldisn/yii-user contains the following files
Loading the files please wait ....