How To Connect And Verify User/admin Connection

Hi,

I search to know how I can verify if user connected is a simple user, or a admin.

I have two tables on my database, "user" and "admin".

UserIdentity and controllers/SiteController are not changed yet

layouts/main contains isGuest proprety for some <li> containers.

Thanks

Hi,

http://www.yiiframework.com/wiki/136/getting-to-understand-hierarchical-rbac-scheme/

you should read first to get knowledge about RBAC. may be it will help to find solution

Yes guy, it’s a good way to do this

I try this, this afternoon.

Can I have an exemple width a SQL table recognition ?

http://www.shibly-khan.com/role-based-access-control-rbac-with-yii-framework/

try this