Hi Bernhard, John and I are looking at how to best serialize a Form to JSON/XML.
We want to mainly extract errors, but we would also like to be able to extract the form fields themselves so that we can optionally also serialize the form as sort of an API definition. Now I was hoping that we could do all of this with the FormInstance, meaning we could skip the createView() call. Now the question is what would be the best approach? Can we get all the information form the FormInstance? Or do we need the FormView? Or we we need both? For example FormInstance has the isValid() method which we need to determine if validation on the form has failed. FormView however probably has all the translation stuff? Some pointers would be appreciated. regards, Lukas Kahwe Smith [email protected] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
