[Newbie] Separate Access Systems on Frontend and Admin

Hello all,

I am starting out with Yii and have finished the screencasts and Larry Ullman series. The application that I am building needs a frontend login for customers and a proper admin for application management. While I am sure i can pull off the admin with Yii’s auth, I am at a loss how to go about the customer login. The customers are in their own table and admin users will also be in a separate table.

Any pointers on this will be appreciated. :)

Came across this solution -

http://www.yiiframework.com/wiki/33/

http://www.yiiframework.com/forum/index.php?/topic/10878-separation-of-admin-controllers-from-public-controllers/

(post 9 in second link)

I don’t have time to elaborate just now unfortunately, but I have a slightly different approach to those described, which is to have my admin as a module of the main application, and give it its own user component (with a different session prefix). I have then extended CAccessControlFilter and modified it so that it looks for the user component of the current module rather than of the application. I then use this filter in my admin controllers rather than the default accessControl filter. This enables me to have two completely separate login systems at the same time.

If you want any more information on this approach, let me know, and I’ll elaborate when I have the time.