当用数据库登录系统报如下错误时
PHP Recoverable Error – yiiaseErrorException
Argument 1 passed to yiiwebUser::login() must be an instance of yiiwebIdentityInterface, instance of appmodulesadminmodelsAdminUser given, called in /home/ser/web_root/sun/modules/admin/models/LoginForm.php on line 61 and defined
请把之前的类定义改成如下语句
class AdminUser extends yiidbActiveRecord implements yiiwebIdentityInterface{
....
}