Difference between #3 and #4 of
Troubleshooting Rights Extension

Revision #4 has been created by junxiong on Jan 6, 2012, 2:00:45 AM with the memo:

add new problem cases
« previous (#3)

Changes

Title unchanged

Troubleshooting Rights Extension

Category unchanged

Tips

Yii version unchanged

Tags unchanged

extension, Rights, RBAC

Content changed

[...]
- If you inherit CWebUser, make sure the class doesn't have a method named "getName()"


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: 24 950 times
Version: 1.1
Category: Tips
Written by: junxiong
Last updated by: junxiong
Created on: Jan 4, 2012
Last updated: 6 years ago
Update Article

Revisions

View all history