File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -420,10 +420,16 @@ corresponding errors printed out with the form.
420
420
but are being prevented by your browser from, for example, submitting
421
421
blank fields.
422
422
423
- .. code-block :: html+jinja
423
+ .. code-block :: html+jinja
424
+
425
+ {# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
426
+ {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
427
+
428
+ .. code-block :: html+php
424
429
425
- {# src/Acme/DemoBundle/Resources/views/Default/new.html.twig #}
426
- {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
430
+ <?php echo $view['form']->form($form, array(
431
+ 'attr' => array('novalidate' => 'novalidate'),
432
+ )) ?>
427
433
428
434
Validation is a very powerful feature of Symfony2 and has its own
429
435
:doc: `dedicated chapter </book/validation >`.
You can’t perform that action at this time.
0 commit comments