Revision #7 has been created by emix on Aug 15, 2010, 4:35:07 PM with the memo:
code fix
« previous (#6) next (#8) »
Changes
Title
unchanged
Add information to Yii::app()->user by extending CWebUser (better version)
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
return parent::__get($name);
}
public function login($identity, $duration) {
$this->setState('__userInfo', $identity->getUserinfo()->attributes());
parent::login($identity, $duration);
}
}
?>
```[...]