Skip to content

Commit c27d28f

Browse files
ifdatticxabbuh
authored andcommitted
Update forms.rst
Conflicts: book/forms.rst
1 parent 19e879b commit c27d28f

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

book/forms.rst

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,13 +1170,10 @@ easy to use in your application.
11701170
<?xml version="1.0" encoding="UTF-8" ?>
11711171
<container xmlns="http://symfony.com/schema/dic/services"
11721172
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1173-
xsi:schemaLocation="http://symfony.com/schema/dic/services
1174-
http://symfony.com/schema/dic/services/services-1.0.xsd">
1173+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
11751174
11761175
<services>
1177-
<service id="app.form.type.task"
1178-
class="AppBundle\Form\Type\TaskType">
1179-
1176+
<service id="app.form.type.task" class="AppBundle\Form\Type\TaskType">
11801177
<tag name="form.type" alias="task" />
11811178
</service>
11821179
</services>
@@ -1480,7 +1477,7 @@ renders the form:
14801477
{# app/Resources/views/default/new.html.twig #}
14811478
{% form_theme form 'form/fields.html.twig' %}
14821479

1483-
{# or if providing multiple themes #}
1480+
{# or if you want to use multiple themes #}
14841481
{% form_theme form 'form/fields.html.twig' 'Form/fields2.html.twig' %}
14851482

14861483
{# ... render the form #}
@@ -1490,7 +1487,7 @@ renders the form:
14901487
<!-- app/Resources/views/default/new.html.php -->
14911488
<?php $view['form']->setTheme($form, array('form')) ?>
14921489

1493-
<!-- or if providing multiple themes -->
1490+
<!-- or if you want to use multiple themes -->
14941491
<?php $view['form']->setTheme($form, array('form', 'form2')) ?>
14951492

14961493
<!-- ... render the form -->
@@ -1633,10 +1630,8 @@ file:
16331630
<container xmlns="http://symfony.com/schema/dic/services"
16341631
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16351632
xmlns:twig="http://symfony.com/schema/dic/twig"
1636-
xsi:schemaLocation="http://symfony.com/schema/dic/services
1637-
http://symfony.com/schema/dic/services/services-1.0.xsd
1638-
http://symfony.com/schema/dic/twig
1639-
http://symfony.com/schema/dic/twig/twig-1.0.xsd">
1633+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1634+
http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd">
16401635
16411636
<twig:config>
16421637
<twig:form>
@@ -1721,10 +1716,8 @@ file:
17211716
<container xmlns="http://symfony.com/schema/dic/services"
17221717
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17231718
xmlns:framework="http://symfony.com/schema/dic/symfony"
1724-
xsi:schemaLocation="http://symfony.com/schema/dic/services
1725-
http://symfony.com/schema/dic/services/services-1.0.xsd
1726-
http://symfony.com/schema/dic/symfony
1727-
http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
1719+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1720+
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
17281721
17291722
<framework:config>
17301723
<framework:templating>

0 commit comments

Comments
 (0)