Sample Authenticating User

Hello,

I went to blog lesson, but it seems not very clear for me. http://www.yiiframework.com/doc/blog/prototype.auth

I have table called staff and I used scaffolding in this table, the table information for them like:

Surname,

username,

password,

email,

mobile,

other,

I want any users in table staff able to login to the myapp based on UserIdentity.php.

Could you please advice me?

What are you having problems with exactly?

It doesn’t really take you step by step, but I can explain any lines that you are having trouble with.

I am new to Yii. How I can create Sample Authenticating User based on my table information?

I need examples.