Tag Archives: web

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.