Wiki

Articles tagged with "cwebuser"X
Displaying 1-1 of 1 result(s).

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

Created 4 years ago by qiangTutorials1 comment – viewed 67,397 times – ( +18 )
By default, the expression Yii::app()->user returns a CWebUser 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 property that stores the username of the current user.