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

Comparing #3 with #4

Revision #4 was created by rainyjune rainyjune on Jun 14, 2010, 12:58:03 AM.

add Chinese version

Content

[...]
```

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)