-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form validation does not show error messages #1018
Comments
Update: I've tried the solution here (#738 (comment)) and It's works. I also tried
Anyway, I guess it must be a better way to validate input data... Thanks |
I had same issue. But it's strange as official symfony documentation suggest only using handleRequest() method because submit() is deprecated. http://symfony.com/doc/current/cookbook/form/direct_submit.html#cookbook-form-call-submit-directly |
@sepikas-antanas : I think using the request object as a input parameter for the submit function is deprecated, not the function itself ? |
Do you use the jmsserializer or the symfony serializer? And submit is not deprecated as @sepikas-antanas said only passing Request as an attribute. |
I got exactly the same issue and I'm using jmsserializer, any idea of where it might come from ? |
You should return
|
i solved it like this:
Don't forget to disable CSRF validation (https://symfony.com/doc/master/bundles/FOSRestBundle/2-the-view-layer.html#csrf-validation)
|
Hi guys,
I'm trying submit a form to my controller but I can not get those errors messages from form.
According to docs (http://symfony.com/doc/current/bundles/FOSRestBundle/2-the-view-layer.html#forms-and-views), I should get
However, my response is:
My config.yml
My controller:
What I am doing wrong???
Thanks in advance
The text was updated successfully, but these errors were encountered: