diff --git a/book/forms.rst b/book/forms.rst index f15d9fac1bd..bffcac0834d 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -1234,7 +1234,7 @@ renders the form: {% form_theme form 'AcmeTaskBundle:Form:fields.html.twig' 'AcmeTaskBundle:Form:fields2.html.twig' %} -
+ .. code-block:: html+php @@ -1243,7 +1243,7 @@ renders the form: setTheme($form, array('AcmeTaskBundle:Form', 'AcmeTaskBundle:Form')) ?> - + The ``form_theme`` tag (in Twig) "imports" the fragments defined in the given template and uses them when rendering the form. In other words, when the