Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 08d26ee

Browse filesBrowse files
committed
Removed the old syntax and left just the "with" keyword syntax
1 parent 94625c5 commit 08d26ee
Copy full SHA for 08d26ee

File tree

Expand file treeCollapse file tree

1 file changed

+3
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-14
lines changed

‎cookbook/form/form_customization.rst

Copy file name to clipboardExpand all lines: cookbook/form/form_customization.rst
+3-14Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -302,29 +302,18 @@ Multiple Templates
302302
..................
303303

304304
A form can also be customized applying several templates. To do so, pass the
305-
name of all the templates to the ``form_theme`` tag separating them with one
306-
whitespace:
305+
name of all the templates as an array using the ``with`` keyword:
307306

308307
.. code-block:: html+jinja
309308

310-
{% form_theme form '::common.html.twig' ':Form:fields.html.twig'
311-
'AcmeDemoBundle:Form:fields.html.twig' %}
309+
{% form_theme form with ['::common.html.twig', ':Form:fields.html.twig',
310+
'AcmeDemoBundle:Form:fields.html.twig'] %}
312311

313312
{# ... #}
314313

315314
The templates can be located at different bundles and they can even be stored
316315
at the global ``app/Resources/views/`` directory.
317316

318-
When using the ``with`` keyword, pass the templates as an array:
319-
320-
321-
.. code-block:: html+jinja
322-
323-
{% form_theme form with ['::common.html.twig', ':Form:fields.html.twig',
324-
'AcmeDemoBundle:Form:fields.html.twig'] %}
325-
326-
{# ... #}
327-
328317
Child Forms
329318
...........
330319

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.