Revision #2 has been created by atrandafir on Jan 10, 2010, 12:21:01 PM with the memo:
changed url title for other article
« previous (#1) next (#3) »
Add information to Yii::app()->user by extending CWebUser
This little tutorial explains a way how you can retrieve more parameters from **Yii::app()->user** by adding a component that extends **CWebUser** and retrieves the user information from database table named User.
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](http://www.yiiframework.com/doc/cookbook/6/)
**Steps to follow:**
1. Make shure 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.