How would you approach frontend / backend in YII?

Hi all

I am using YII for the first time, and I just need some general opinions.

If I take, as an example, the User table, and I am going to have users register from the frontend, but I am also going to be managing users from the admin backend, how would you go about it?

Would you create one user controller and use that in both views, or would you create a UserController with its own views and AdminUserController with its own views?

In order to have one in model in one place with all necessary methods I create model under admin layer. Inside this layer I have ‘admin controller’ for special admin actions. Under ‘front end’ layer I inject this model from admin and of course have ‘front end controller’ for users’ activities.