Open clevonnoel opened 10 years ago
It would be nice to handle validation like $this->registrationForm->validate();where necessary.
$this->registrationForm->validate();
Here are the untested suggested code.
public function validate(array $formData = null) { $this->validation = $this->validator->make( $formData ?: Input::all(), $this->getValidationRules(), $this->getValidationMessages() ); if ($this->validation->fails()) { throw new FormValidationException('Validation failed', $this->getValidationErrors()); } return true; }
Submit a pull request
It would be nice to handle validation like
$this->registrationForm->validate();
where necessary.Here are the untested suggested code.