Reputation: 15504
Is there a convenient way to check if there are any errors on a form on the view without having to modify the controller or looping across all the elements of my form.
I can do something like:
isset($this->formElementErrors($registrationForm->get('firstName')))
This is not quite elegant and again, i will need to call that for every element on my form. So is there any way to know if there is any error on the form compilation?
Upvotes: 0
Views: 39