Advertisement
fernandezekiel

Untitled

Aug 22nd, 2013
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. public function getUserModel() {
  2.         if ($this->_userModel === null && Yii::app()->user->isGuest === false) {
  3.             $this->_userModel = User::model()->findByPk(Yii::app()->user->id);
  4.         }
  5.         return $this->_userModel;
  6.     }
  7.  
  8.     public function setUserModel($value) {
  9.         $_userRecord = $value;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement