I’ve got a form I’m trying to make in symfony2. When I’m trying to submit it, it displays the “this field cannot be empty” error, but by no field, since every field is filled out. In symfony1.4, there was a section in debug panel that displayed everything about the form, including why it wasn’t validated. Can i find something like that in Symfony2 profiler, or is it just full of unusable request data, logs, and broken functionalities?
Share
Form data can be found on the request panel.
However most likely you are posting a form and redirecting elsewhere, and when you access the Profiler directly from the toolbar, you are only viewing the request after the post request.
The quickest way is to go into the Profiler, click on “View All” up the top, and find the POST request that handled your form submission.
The alternative, you can enable
intercept-redirects:See more here: http://symfony.com/doc/2.0/book/internals.html#configuration