How to connect Yii: app () -> user with the User model. For example, to get an instance of the User model, call the following method:
Yii:app()->user->getUser()
For example, I want to receive an authorized user E-mail:
Yii:app()->user->getUser()-email;
Some material is taken from: http://www.yiiframework.com/wiki/80/add-information-to-yii-app-user-by-extending-cwebuser-better-version/