php - How to set different index pages depending on logged in users role in yii -


i working on 1 yii project. have used rbac module in user management. user roles admin, superadmin, sales, authenticated, customer.

i want redirect users per roles after logging in. example, admin , superadmin should see page1 index page (default action) after login , customer should see page2 index page (default action) after login. have set menu depending upon user roles i.e. menu tabs should visible whom.

also aware setting default action in yii. i.e. in main.php file, have set default controller action. don't understand how can solve problem. please me this.

thanx in advance.

one possibility check if request_uri / , redirect appropriate controller , action based on role.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -