Hallow guys, am new in Yii framework, i started with following the book Agile webdevelopment, but i get stack at chapter six, where we want to authenticate login details using the value stored in database instead of admin/admin or demo/demo. But after changing UserIdentity class and when trying to login i got the error
[color="#FF0000"]User and its behaviors do not have a method or closure named "encrypt".[/color]