symfony

Form Validation in Symfony 2

By Andrew Perkins

Today we’re going to continue where we left off last time, where we learned how to build reusable forms in Symfony 2. In this video, we’ll learn how to validate the data that has been submitted to our form to ensure it is in the correct format, meets our data’s requirements and then process the form submission accordingly.

And with that, we now have a working form, which validates our data and displays the validation error messages back to the user.

So that’s it for working with forms and form validation. Next up, we’ll learn how to interact with a database in Symfony 2. Thanks for watching.

Source: Nettuts+



0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.