Last Updated: February 25, 2016
·
918
· rodnaph

Symfony2 Form Theme Typos

Symfony2 allows some pretty flexible form theme customizing from the templating. You can override all parts of the form that will be displayed.

When working with this though it's very important to not include any typos in your block names. For example...

{% block _user_wigdet_row %}

Should actually be...

{% block _user_widget_row %}

Not including typos like this can save you potentially hours in debugging time, so be very careful for maximum pro-ness.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside