Forms
7 exercises work on this concept, by writing code in the browser.
In the tracks
- A proper form Symfony for PHP developers · chapter 3: The tavern's scrolls
- The guestbook Symfony for PHP developers · chapter 3: The tavern's scrolls
- 🐉 Boss: the cursed scroll Symfony for PHP developers · chapter 3: The tavern's scrolls
- The story night poster Symfony for PHP developers · chapter 12: The big night
- Sign-ups Symfony for PHP developers · chapter 12: The big night
In Practice
- One field for a date range, with BoundsType Two dates and the rule that orders them fit in a single field: no more POST_SUBMIT listener comparing the bounds by hand.
- Describing a form with attributes A form's fields are declared on the DTO, right next to the validation constraints: no more form class for simple cases.