@@ -96,7 +96,7 @@ from inside a controller::
96
96
->add('save', 'submit', array('label' => 'Create Task'))
97
97
->getForm();
98
98
99
- return $this->render('Default /new.html.twig', array(
99
+ return $this->render('default /new.html.twig', array(
100
100
'form' => $form->createView(),
101
101
));
102
102
}
@@ -144,14 +144,14 @@ helper functions:
144
144
145
145
.. code-block :: html+jinja
146
146
147
- {# app/Resources/views/Default /new.html.twig #}
147
+ {# app/Resources/views/default /new.html.twig #}
148
148
{{ form_start(form) }}
149
149
{{ form_widget(form) }}
150
150
{{ form_end(form) }}
151
151
152
152
.. code-block :: html+php
153
153
154
- <!-- app/Resources/views/Default /new.html.php -->
154
+ <!-- app/Resources/views/default /new.html.php -->
155
155
<?php echo $view['form']->start($form) ?>
156
156
<?php echo $view['form']->widget($form) ?>
157
157
<?php echo $view['form']->end($form) ?>
@@ -442,12 +442,12 @@ corresponding errors printed out with the form.
442
442
443
443
.. code-block :: html+jinja
444
444
445
- {# app/Resources/views/Default /new.html.twig #}
445
+ {# app/Resources/views/default /new.html.twig #}
446
446
{{ form(form, {'attr': {'novalidate': 'novalidate'}}) }}
447
447
448
448
.. code-block :: html+php
449
449
450
- <!-- app/Resources/views/Default /new.html.php -->
450
+ <!-- app/Resources/views/default /new.html.php -->
451
451
<?php echo $view['form']->form($form, array(
452
452
'attr' => array('novalidate' => 'novalidate'),
453
453
)) ?>
@@ -784,7 +784,7 @@ of code. Of course, you'll usually need much more flexibility when rendering:
784
784
785
785
.. code-block :: html+jinja
786
786
787
- {# app/Resources/views/Default /new.html.twig #}
787
+ {# app/Resources/views/default /new.html.twig #}
788
788
{{ form_start(form) }}
789
789
{{ form_errors(form) }}
790
790
@@ -794,7 +794,7 @@ of code. Of course, you'll usually need much more flexibility when rendering:
794
794
795
795
.. code-block :: html+php
796
796
797
- <!-- app/Resources/views/Default /newAction.html.php -->
797
+ <!-- app/Resources/views/default /newAction.html.php -->
798
798
<?php echo $view['form']->start($form) ?>
799
799
<?php echo $view['form']->errors($form) ?>
800
800
@@ -1002,12 +1002,12 @@ to the ``form()`` or the ``form_start()`` helper:
1002
1002
1003
1003
.. code-block :: html+jinja
1004
1004
1005
- {# app/Resources/views/Default /new.html.twig #}
1005
+ {# app/Resources/views/default /new.html.twig #}
1006
1006
{{ form_start(form, {'action': path('target_route'), 'method': 'GET'}) }}
1007
1007
1008
1008
.. code-block :: html+php
1009
1009
1010
- <!-- app/Resources/views/Default /newAction.html.php -->
1010
+ <!-- app/Resources/views/default /newAction.html.php -->
1011
1011
<?php echo $view['form']->start($form, array(
1012
1012
'action' => $view['router']->generate('target_route'),
1013
1013
'method' => 'GET',
@@ -1437,7 +1437,7 @@ do this, create a new template file that will store the new markup:
1437
1437
1438
1438
.. code-block :: html+jinja
1439
1439
1440
- {# app/Resources/views/Form /fields.html.twig #}
1440
+ {# app/Resources/views/form /fields.html.twig #}
1441
1441
{% block form_row %}
1442
1442
{% spaceless %}
1443
1443
<div class="form_row">
@@ -1450,7 +1450,7 @@ do this, create a new template file that will store the new markup:
1450
1450
1451
1451
.. code-block :: html+php
1452
1452
1453
- <!-- app/Resources/views/Form /form_row.html.php -->
1453
+ <!-- app/Resources/views/form /form_row.html.php -->
1454
1454
<div class="form_row">
1455
1455
<?php echo $view['form']->label($form, $label) ?>
1456
1456
<?php echo $view['form']->errors($form) ?>
@@ -1466,19 +1466,19 @@ renders the form:
1466
1466
1467
1467
.. code-block :: html+jinja
1468
1468
1469
- {# app/Resources/views/Default /new.html.twig #}
1470
- {% form_theme form 'Form /fields.html.twig' %}
1469
+ {# app/Resources/views/default /new.html.twig #}
1470
+ {% form_theme form 'form /fields.html.twig' %}
1471
1471
1472
- {% form_theme form 'Form /fields.html.twig' 'Form/fields2.html.twig' %}
1472
+ {% form_theme form 'form /fields.html.twig' 'Form/fields2.html.twig' %}
1473
1473
1474
1474
{# ... render the form #}
1475
1475
1476
1476
.. code-block :: html+php
1477
1477
1478
- <!-- app/Resources/views/Default /new.html.php -->
1479
- <?php $view['form']->setTheme($form, array('Form ')) ?>
1478
+ <!-- app/Resources/views/default /new.html.php -->
1479
+ <?php $view['form']->setTheme($form, array('form ')) ?>
1480
1480
1481
- <?php $view['form']->setTheme($form, array('Form ', 'Form2 ')) ?>
1481
+ <?php $view['form']->setTheme($form, array('form ', 'form2 ')) ?>
1482
1482
1483
1483
<!-- ... render the form -->
1484
1484
@@ -1606,7 +1606,7 @@ file:
1606
1606
twig :
1607
1607
form :
1608
1608
resources :
1609
- - ' Form /fields.html.twig'
1609
+ - ' form /fields.html.twig'
1610
1610
# ...
1611
1611
1612
1612
.. code-block :: xml
@@ -1621,7 +1621,7 @@ file:
1621
1621
1622
1622
<twig : config >
1623
1623
<twig : form >
1624
- <twig : resource >Form /fields.html.twig</twig : resource >
1624
+ <twig : resource >form /fields.html.twig</twig : resource >
1625
1625
</twig : form >
1626
1626
<!-- ... -->
1627
1627
</twig : config >
@@ -1633,7 +1633,7 @@ file:
1633
1633
$container->loadFromExtension('twig', array(
1634
1634
'form' => array(
1635
1635
'resources' => array(
1636
- 'Form /fields.html.twig',
1636
+ 'form /fields.html.twig',
1637
1637
),
1638
1638
),
1639
1639
// ...
0 commit comments