We already learned all the form basics. But, controlling how you render your forms? That's a huge and super-fun topic all on its own. Themes! Form variables! Rainbows! Let's go!
Creating your own form theme
Controller form variables
Using form variables in your theme
Rendering a field 100% by hand
Controller variables in your form type
Adding a "help" text system that renders for all fields
Leveraging a FormTypeExtension to tweak any field in your system
Customizing how a single field renders
This stuff is black magic: learn these fundamentals, and you'll be unstoppable!
Overview
Syllabus
- 01. Form Parts & Functions Reference
- 02. Form Rendering Functions
- 03. Form Variables are the Bomb
- 04. Pro Form Theming
- 05. Form Theming: Add an Error Icon
- 06. Complex Blocks & the parent() Function
- 07. Adding Form Field Help Text
- 08. Go Deeper: Vars, Twig merge & Form Functions
- 09. Form Options & Variables: Dream Team
- 10. Controlling Vars with finishView()
- 11. Form Type Extension Magic
- 12. Compound & Embedded Forms
- 13. Rendering Fields Manually
Taught by
Ryan Weaver