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

Revision #7 has been created by Darwin Wen on Oct 19, 2011, 9:44:51 AM with the memo:

Update wrong chinese version url
« previous (#6) next (#8) »

Changes

Title unchanged

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

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
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://projects.ourplanet.tk/node/74www.itkuaixun.com/bbs/thread-64-1-2.html)
27 0
38 followers
Viewed: 132 216 times
Version: 1.1
Category: Tutorials
Tags:
Written by: atrandafir
Last updated by: Yang He
Created on: Jan 10, 2010
Last updated: 5 years ago
Update Article

Revisions

View all history