This extension is an alternate role based access control system for the Yii. It meant to be more tied to the MVC in that sense that each permission is closely related to controller/action pair and access checking is being performed in controller filters.
It also features an yiic shell command which will allow you to fully manipulate permissions and roles, e.g. create/update/grant and revoke, search, etc.
At present this extension is in early stage and was only tested with MySQL 5 database
There is a small description available here: http://www.yiiframework.com/forum/index.php/topic,905.0.html
All comments, bug reports and suggestions are welcome.
php
'components'=>array(
'rbac' => array(
'class'=>'application.components.Rbac',
),
.......
php
public function filters()
{
return array(
array(
'application.filters.RbacFilter',
),
);
}
Total 4 comments
I'm getting this error:
Filter is invalid. Controller "PostController" does have the filter method...
I' hope that I'll get a fast reply plz:S
Yii Interactive Tool v1.0 (based on Yii v1.0.4) Please type 'help' for help. Type 'exit' to quit.
: :
Can anybody advice on this warning?
Yes, I second that. It should allow developer to name their own tables.
Good job.
I think it's really a great extension with a convenient shell tool. One thing to mention is, I think it's better to allow user to specify the table names since in many cases people have different table naming convention,it's more flexible for developers. Keep on the great work!
Leave a comment
Please login to leave your comment.