ajax - How to serialize ZF2 form object to JSON? -
I am using a zf2 form object on the server and ajax code on the client to implement my registration form. I post the prices of the form in the AJAX request, there is no problem, and form them
$ form-> Fixes with set data ($ request-> getPost ());
After validating the form and registering on the server, I want to send the form back to the customer, especially if there are errors, so I can show them to the user. I'm looking for a standard way to sort the form object in JSON format or using a plugin, so I can send it in response to an AJAX call. Any ideas?
What can you do well on your form of verification and then you come back Your Form within
Comments
Post a Comment