I'm building a web application using Symfony 2.5. I am currently struggling with internally forwarding requests with POST/PUT form data attached. I've had a previous a previous question resolved by Cerad concerning this point. For the full story see:
Subrequests with post vars
But now that I have the solution for forwarding, I can't seem to be able to find a way to extract form data as an array of values that could be attached to the sub request. I tried using Form::getData()
but it returned an entity, I also tried to use Form::all()
but I get an array of Form objects. I could iterate over all these to get the effective values in the form, but I feel like there should be a better solution.
Any idea ?