Form error management in symfony 2 -
im trying guess why form submit not valid, since entity has no constraints.
i pass twig template 'error' => $form->geterrors()
have no idea how show in twig error message
thanks all
from the docs:
{{ form_errors(form.fooproperrty) }}
and
{{ form_errors(form) }}
if may guess, form not validating because forgot render csrf token, can render doing
{{ form_rest(form) }}
Comments
Post a Comment