Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Comparing #2 with #6

Title

Installing and configurating the Yii User Management Module under a fresh skeleton Aapplication generated by yiic

Tags

Authentication

Content

p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module. 
 
 
Installing the User Management Module is very easy due to the
great module System of the Yii Framework and the Installer provided
by the Module. In this Tutorial we will learn how to use the User
[...]
2.) Extract the Yii User Management Module under the modules/ directory
of your new Web Application. Replace the _0.
24 with the latest Version
available.
[...]
$ mkdir modules
$ cd modules
$ wget http://www.yiiframework.com/extension/yii-user-management/files/User_Management_Module_0.
24.tar.bz2 $ tar xvf User_Management_Module_0.24.tar.bz2
~~~
[...]
'User'=>array(
'class' => 'User',
),
 
 
 'import'=>array(
 
  'application.modules.user.models.*',


~~~
[...]
~~~

 At the time of this writing you have to copy over the UserIdentity.php
 
 of the User Module to your Application components directory manually.
 
 This will be automated in later versions. Do it like this:
 
 
 
~~~
 
 $ cp protected/modules/user/components/UserIdentity.php protected/components
 
~~~
 
 
6.) Run the User Management Installer in your Web-Browser:

http://localhost/testdrive/index.php/user/install
[...]
```php
if(
Yii::app()->User->::hasRole('role'))
{
// user is allowed
}
else
{
[...]