Skip to content

Commit 121443f

Browse files
committed
form_theme form _self not for parentless templates
1 parent 240cf46 commit 121443f

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
@@ -1275,6 +1275,17 @@ to define form output.
12751275
this method to quickly make form output customizations that will only
12761276
ever be needed in a single template.
12771277

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

0 commit comments

Comments
 (0)