Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getUserModel() {
- if ($this->_userModel === null && Yii::app()->user->isGuest === false) {
- $this->_userModel = User::model()->findByPk(Yii::app()->user->id);
- }
- return $this->_userModel;
- }
- public function setUserModel($value) {
- $_userRecord = $value;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement