Skip to content

Commit 3d659a0

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

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

book/forms.rst

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,12 +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">
1176+
<service id="app.form.type.task" class="AppBundle\Form\Type\TaskType">
11791177
11801178
<tag name="form.type" alias="task" />
11811179
</service>
@@ -1480,7 +1478,7 @@ renders the form:
14801478
{# app/Resources/views/default/new.html.twig #}
14811479
{% form_theme form 'form/fields.html.twig' %}
14821480

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

14861484
{# ... render the form #}
@@ -1490,7 +1488,7 @@ renders the form:
14901488
<!-- app/Resources/views/default/new.html.php -->
14911489
<?php $view['form']->setTheme($form, array('form')) ?>
14921490

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

14961494
<!-- ... render the form -->
@@ -1633,10 +1631,8 @@ file:
16331631
<container xmlns="http://symfony.com/schema/dic/services"
16341632
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16351633
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">
1634+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1635+
http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd">
16401636
16411637
<twig:config>
16421638
<twig:form>
@@ -1721,10 +1717,8 @@ file:
17211717
<container xmlns="http://symfony.com/schema/dic/services"
17221718
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17231719
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">
1720+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1721+
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
17281722
17291723
<framework:config>
17301724
<framework:templating>

0 commit comments

Comments
 (0)