User Based Page Access

Dear Experts,

Please support me for control user access for every page from admin panel. How to store the actions in DataBase and get in Admin Panel so that the admin can select users for the action and store it. If the user login i have to get the access privilege from DB weather the user having permission to access this page if not redirect to a error page. For every user the privilege can differ. And also i need support for the table structure how it be easy to store.

I would be thankful.




Use this extension. or read this article

thoroughly to understand Authentication and Authorization in yii framework.