Yii framework: RBAC
Rbac in the Yiiframework isn’t hard at all but how do you keep your db clean and readable code readable and logic!
After you have successfully configured the RBAC in /protected/config/main.php you need to insert the sql into your database and introduce your rules and accesses into to table, mine looks like this:

And my code:

This shows you how clean it can be first i have ‘moduleName.controllerName.actionName’ which even when working in the db has you focused on what you’re doing.




Luis Lobo Borobia 20:51 on 02/02/2011 Permalink |
Thank you, nice idea.
One other question, I love the color scheme of your screen captures! What do you use for coding? Is that a custom color scheme or did you use some standard?
Regards,
Luis
webscriptz 21:45 on 03/02/2011 Permalink |
I code my applications in ubuntu linux with gedit or geany. Gedit still has my preference because it’s no clutter software where your knowledge is everything, so no fancy code support except for highlighting. as for the theme it’s a standard theme in gedit which can be selected in the preferences menu.