protected function afterFind() { if (!$this->face) { $this->face = $this->defaultFace; } return parent::afterFind(); }
protected function afterFind() { if (!$this->face) { $this->face = $this->defaultFace; } $this->face_48 = $this->face && DxdUtil::xImage($this->face, 48, 48) ? Yii::app()->baseUrl . "/" . DxdUtil::xImage($this->face, 48, 48) : "http://placehold.it/48x48"; // if($this->noEmail()) $this->email = ""; return parent::afterFind(); }