User permissions

Hi,

I have a users table with a "role" column, defined as an integer. I want to create a permissions that allows / denies the user to access controller(s) / controller method based on what is in this integer column.

Does Yii have the built functionality for this, if not what are your recommendations.

Also does what about permissions in the view layer, how do these work.

If you’re thinking of letting that column carry a role id, then yes:

http://www.yiiframework.com/doc/guide/1.1/en/topics.auth#role-based-access-control

I would recommend the Rights extension, though. :)

Thanks.