symfony

Creating Reusable Forms in Symfony 2

By Andrew Perkins

In this video, we’ll build upon our existing knowledge of Symfony 2 to learn how to create reusable forms. We’ll learn how to create a separate form class to house our form logic, build the form in a controller and then render it to the browser, from a template.

In Conclusion about the Reusable forms

Now there’s lots of other options that you can pass in while creating your forms, to customize them to your liking. We’ll see more of these in action as we proceed through the series.

In the next video, we’ll learn how to validate our data and process the form submission in order to prepare the data to be persisted to a database. Stay tuned for the next one!

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.