Skip to content

Commit

Permalink
Applied suggestion by Ryan
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Oct 31, 2014
1 parent d653ff4 commit 0086c5e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cookbook/form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,19 @@ just one line:

.. code-block:: jinja
{# renders all fields #}
{{ form_widget(form) }}
{# renders all fields *and* the form start and end tags #}
{{ form(form) }}
.. code-block:: php
<?php echo $view['form']->widget($form); ?>
<!-- renders all fields -->
<?php echo $view['form']->widget($form) ?>
<!-- renders all fields *and* the form start and end tags -->
<?php echo $view['form']->form($form) ?>
The remainder of this recipe will explain how every part of the form's markup
can be modified at several different levels. For more information about form
Expand Down

0 comments on commit 0086c5e

Please sign in to comment.