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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -