Revision #12 has been created by dckurushin on Oct 12, 2011, 10:40:43 AM with the memo:
little fix
« previous (#11) next (#13) »
Changes
Title
unchanged
How to setup RBAC with a php file
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Authentication
Content
changed
[...]
[Role-Based Access Control](http://www.yiiframework.com/doc/guide/topics.auth#role-based-access-control)<br />
[CModel::rules()](/doc/api/CModel#rules-detail)<br />
[CAuthManager](http://www.yiiframework.com/doc/api/CAuthManager)<br />
[RBAC clarification](http://www.yiiframework.com/forum/index.php?/topic/2313-rbac-confusion)<br />
[another related rbac approach](http://yiiframework.ru/doc/cookbook/ru/access.rbac.file)<br />
[CPhpAuthManager - how it works, and when to use it](http://www.yiiframework.com/wiki/253/cphpauthmanager-how-it-works-and-when-to-use-it)<br />
/
>Disclaimer: The above code works for me. I do not guarantee that it will work in all situations. If you need more complex RBAC structure use the DB one. I've read all posts in the forum re: RBAC but none of them helped me so the above code has been discovered through trial & error. Use it on your own responsibility.