Skip to content

Commit c1fed79

Browse files
committed
Merge pull request #1430 from mdpatrick/form_theme_self
form_theme form _self not for parentless templates
2 parents fdc6297 + 121443f commit c1fed79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

book/forms.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,17 @@ to define form output.
12791279
this method to quickly make form output customizations that will only
12801280
ever be needed in a single template.
12811281

1282+
.. caution::
1283+
1284+
Templates that do not make use of the extends tag and thereby become
1285+
a child of another template will have all of their blocks executed
1286+
the moment they are rendered. This has the side-effect of preventing
1287+
form_theme from having access to blocks you may be attempting to use
1288+
when overriding the default form blocks.
1289+
1290+
In practice, {% form_theme form _self %} should only be used by templates
1291+
that do extend a base template.
1292+
12821293
PHP
12831294
...
12841295

0 commit comments

Comments
 (0)