Showing 21-25 of 25 items.

How to add more information to Yii::app()->user

Created 17 years ago by qiang qiang, updated 14 years ago by Yang He Yang He. 2 comments

By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#application-component) which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, [CWebUser] already comes with a [name|CWebUser::name] property th...

21 0
28
Viewed: 239 567 times
Version: 1.1
Category: Tutorials