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

Revision #4 has been created by rainyjune on Jun 14, 2010, 12:58:03 AM with the memo:

add Chinese version
« previous (#3) next (#5) »

Changes

Title unchanged

Add information to Yii::app()->user by extending CWebUser

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
```

That's all now you can use the following commands:
Yii::app()->user->first_name - property that returns name
Yii::app()->user->isAdmin() - function that returns admin status
And now you can add all the functions you want to WebUser component.

 
 
### Links
 
[Chinese version](http://dreamneverfall.cn/node/74)
27 0
38 followers
Viewed: 153 152 times
Version: 1.1
Category: Tutorials
Tags:
Written by: atrandafir
Last updated by: Yang He
Created on: Jan 10, 2010
Last updated: 12 years ago
Update Article

Revisions

View all history