Exemple #1
0
 public function beforeValidate()
 {
     if ($this->passwordConfirm != $this->password) {
         $this->addError('passwordConfirm', "Password confirm doesn't match");
     }
     return parent::beforeValidate();
 }