Favorites
b/v-tutorialsbyahabeta

Getting Crazy with Form Themes

Getting Crazy with Form Themes

Ryan Weaver, Leanna Pelham | Duration: 1 h | Video: H264 1920x1080 | Audio: AAC 48 kHz 2ch | 416 MB | Language: English

This tutorial is built on Symfony 3 but form theming hasn't changed much in Symfony 6. Other than some path differences - this tutorial should work fine.

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!

Homepage

Screenshots

Getting Crazy with Form Themes

No comments have been posted yet. Please feel free to comment first!

    Load more replies

    Join the conversation!

    Log in or Sign up
    to post a comment.