User "customer" & user "admin"

Hi all,

I would like to create 2 modules user : customer & admin.

The user "customer" represents a customer and its informations for each order such as billing & shipping address, order history etc. Each customer can log in & log out in his espace.

The user "admin" represents a user/administrator of the website to manage the content.

I do not know how to do… can I create 2 modules/components User using CUserIdentity at the same time ?

Anyone has any idea please ?

Thanks a lot.

I think what you need is roles. Have you checked something like RBAC in Yii? You can create customer and admin roles and assign them to your controller actions.