diff --git a/forms.rst b/forms.rst index c3b486a8071..198f7953b2e 100644 --- a/forms.rst +++ b/forms.rst @@ -434,7 +434,9 @@ Validation is a very powerful feature of Symfony and has its own .. code-block:: html+twig {# templates/default/new.html.twig #} - {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }} + {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }} + {{ form_widget(form) }} + {{ form_end(form) }} .. code-block:: html+php @@ -442,6 +444,9 @@ Validation is a very powerful feature of Symfony and has its own form($form, array( 'attr' => array('novalidate' => 'novalidate'), )) ?> + start($form, array('attr' => array('novalidate' => 'novalidate') ?> + widget($form) ?> + end($form) ?> .. index:: single: Forms; Built-in field types