Difference between #2 and #3 of
Add information to Yii::app()->user by extending CWebUser

Revision #3 has been created by JayRoe on Feb 5, 2010, 11:19:21 PM with the memo:

1. Make shure you => 1. Make sure you
« previous (#2) next (#4) »

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 s
hure 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:**
[...]
27 0
38 followers
Viewed: 151 270 times
Version: 1.1
Category: Tutorials
Tags:
Written by: atrandafir
Last updated by: Yang He
Created on: Jan 10, 2010
Last updated: 11 years ago
Update Article

Revisions

View all history