In this beginner friendly video series we are going to learn how to use Symfony 3 forms. We will be creating a number of different forms throughout this series, including:
Working with forms is an extremely common task on most web sites, whether a basic contact form, or complex multi-page wizards, from experience I can tell you that they confuse many a developer. Symfony3's form is one of the most interesting and useful parts of the entire framework, but it can be tricky to use, especially at first.
To get the most from this series, you should have at least a basic understanding of Twig, and Routing, as well as an understanding of Doctrine and entities. Fortunately, these two topics were covered in the previous two tutorial series here on CodeReviewVideos, and this video series builds on the knowledge gained in both to help increase your practical understanding of the Symfony framework.
If you have used Symfony 2 forms before then you will notice that Symfony 3 form syntax has changed - not massively, but there have been changes.
We are going to be making use of Bootstrap 3 throughout this series for styling our forms. This is an incredibly popular front end framework and is something you are likely to see in use on the modern web. Symfony comes with built in support for form styles using Bootstrap 3, along with support for Zurb's Foundation framework also. I'll show you how to configure form styling easily and with the very minimum of effort.
The Symfony form component is large, and there is a lot to learn - if you want to become a true master of the form that is.
However, you really don't need to be an uber-form guru to simply use forms in your project. I will show you how you can achieve a great deal once you know the basics.
The one thing that surprised me the most when using Symfony's form has been its power and versitility. I use the form in my own projects in some unexpected ways - including as a way to accept data in a Symfony 3 REST API.
By the end of the very first video you will have created a contact form using Symfony's form builder, and from there we will move on to working with Doctrine entities, through to validating user submitted data, and more.
If you have any questions, comments, or feedback, do please leave a comment below the videos, and I will do my very best to help you learn the Symfony form :)
|1||Creating a Contact Form||12:07|
|2||Creating New Doctrine Entities Using Symfony's Form||08:34|
|3||Updating Existing Doctrine Entities||07:52|
|4||Validating Form Data with Symfony 3||11:58|
|5||Styling and Customising Using Form Fragments||08:33|
|6||Symfony Forms For Designers||12:12|
|7||Number, Integer, Or Custom Float?||12:06|
|9||Just Look At My Range!||07:40|
|10||Dates - Not Just A Delicious Fruit||07:24|
|11||Dealing With Dates and Times||11:17|
|12||Introduction to ChoiceType||04:33|
|13||A Little More Choice||07:04|
|14||Simple Multiple Choice With Arrays||04:38|
|15||Many To Many With The EntityType Form Field||07:16|
|16||Part 1 - An Easy Way To Handle 'Other' With Drop Downs||11:06|
|17||Part 2 - Embedded Forms, Validation and Bootstrap Styling||18:55|
|19||Timestamps on Symfony Forms||08:20|
|20||Snake Case On Your Forms, Camel Case On Your Entities||05:28|
If you have found this course helpful, please share it.