Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getProfile(){
- if (!$this->isGuest && $this->_profile === null){
- $criteria = Array(
- 'condition'=>'user_id = :user_id',
- 'params' => Array(
- ':user_id'=>$this->model->id
- )
- );
- $this->_profile = Profile::model()->find(new CDbCriteria( $criteria ));
- }
- return $this->_profile;
- }
Add Comment
Please, Sign In to add comment