User authentication

Hi all,

I have just started to learn Yii framework. I need to implement user authentication and authorization. I was passing through the tutorial and I saw you need to define identity class. I didn’t clear understood that tutorial. Where should that defined class reside? Please can someone assist me on this or point me to a more details tutorial about user authentication.

Create a new skeleton application with yiic webapp command, then look for the following files:



protected/controllers/SiteController.php - the actionLogin() method

Read the code and comments carefully, and, after understandig how they work and interact with each other, you can easily customize authentication by modifying these files.

Thank you phtamas,

You have given me a very good start, hope now I can carry on. Will come back in case of any problem.