Revision #8 has been created by Alex.1 on Jan 4, 2012, 3:39:46 AM with the memo:
a / an
« previous (#7) next (#9) »
Changes
Title
unchanged
Add information to Yii::app()->user by extending CWebUser
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
There is also another method of doing this that retrieves the variables from session or cookie instead:
[How to add more information to Yii::app()->user (based on session or cookie)](http://www.yiiframework.com/doc/cookbook/6/)
**Steps to follow:**
1. Make sure you have got an database User model.
2. Create a component that extends CWebUser.
3. Specify in the config.php what user class the application must use.
**1. The User model should be a file like this, that you probably already have, anyway for who doesn't:**[...]