Skip to content

Commit 0086c5e

Browse files
committed
Applied suggestion by Ryan
1 parent d653ff4 commit 0086c5e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cookbook/form/form_customization.rst

+9-1
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,19 @@ just one line:
6767

6868
.. code-block:: jinja
6969
70+
{# renders all fields #}
71+
{{ form_widget(form) }}
72+
73+
{# renders all fields *and* the form start and end tags #}
7074
{{ form(form) }}
7175
7276
.. code-block:: php
7377
74-
<?php echo $view['form']->widget($form); ?>
78+
<!-- renders all fields -->
79+
<?php echo $view['form']->widget($form) ?>
80+
81+
<!-- renders all fields *and* the form start and end tags -->
82+
<?php echo $view['form']->form($form) ?>
7583
7684
The remainder of this recipe will explain how every part of the form's markup
7785
can be modified at several different levels. For more information about form

0 commit comments

Comments
 (0)