File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Original file line number Diff line number Diff line change @@ -424,14 +424,16 @@ Validation is a very powerful feature of Symfony and has its own
424
424
.. code-block :: html+twig
425
425
426
426
{# app/Resources/views/default/new.html.twig #}
427
- {{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
427
+ {{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
428
+ {{ form_widget(form) }}
429
+ {{ form_end(form) }}
428
430
429
431
.. code-block :: html+php
430
432
431
433
<!-- app/Resources/views/default/new.html.php -->
432
- <?php echo $view['form']->form ($form, array(
433
- 'attr' => array('novalidate' => 'novalidate'),
434
- ) ) ?>
434
+ <?php echo $view['form']->start ($form, array('attr' => array('novalidate' => 'novalidate') ?>
435
+ <?php echo $view['form']->widget($form) ?>
436
+ <?php echo $view['form']->end($form ) ?>
435
437
436
438
.. index ::
437
439
single: Forms; Built-in field types
You can’t perform that action at this time.
0 commit comments