login page login page, pull roles from DB and redirect according to role
Posted 03 February 2012 - 05:39 AM
I'm a newbee to Yii but willing to learn it, I got both of published books and went through them but still can't accomplish what I need, can you help me please ?
Site that I'm creating is something like members area in a whole, so nothing of content is displayed before someone log in. After log in, it should be done against MySQL, and pulling user role from DB, it has to redirect to content that specific user can see.
index.php->Login->(success login,user role)->(dir)admin(admin controllers)
I would like to separate role folders and according to role to redirect user to it.
I'll appreciate any help.
Posted 03 February 2012 - 10:18 AM
Posted 15 January 2014 - 03:37 AM
Suppose to create modules for manage comments, resize image, ...: