Difference between #2 and #4 of
Troubleshooting Rights Extension

Changes

Title unchanged

Troubleshooting Rights Extension

Category unchanged

Tips

Yii version unchanged

Tags unchanged

extension, Rights, RBAC

Content changed

[...]
```php
'rights'=>array(
'userClass' => 'AnotherName',
),
```
[...]
Troubleshoot
------------
**Problem**
 
 
 
Get 

 
 
Need to change the table name for the sake of consistency
 
 
**Solutions**
 
 
Add the code to 'authManager' in the Yii configuration files:
 
 
 
 
 
```php 
'authManager' => array(
 
    'class' => 'RDbAuthManager',
 
    'assignmentTable' => 'authassignment',
 
    'itemTable' => 'authitem',
 
    'itemChildTable' => 'authitemchild',
 
    'rightsTable' => 'rights',
 
),
 
```
 
 
 
<hr/>
 
 
**Problem**
 
 
Got message:
 
Filter "rights" is invalid. Controller "XyzController" does not have the filter method "filterrights"."
 
 
**Solution**
 
 
You must extend the controller class from RController. The easiest way is change the code at /protected/components/Controller.php 
 
 
 
 
```php 
class Controller extends RController
 
```
 
 
 
<hr/>
 
 
 
**Problem** 
 
 
Got message:
 
"Property "CWebApplication.rights" is not defined." message.

**Solution**
[...]
<hr/>
 
 
**Problem** The Guest seems like not working.

**Solution**
[...]
```

 
<hr/>
5 0
14 followers
Viewed: 30 907 times
Version: 1.1
Category: Tips
Written by: junxiong
Last updated by: junxiong
Created on: Jan 4, 2012
Last updated: 12 years ago
Update Article

Revisions

View all history