/** * Returns the static model of the specified AR class. * @return SysMessage the static model class */ public static function model($className = __CLASS__) { return parent::model($className); }
protected function afterValidate() { parent::afterValidate(); $this->password = $this->encrypt($this->password); }