Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 695cb20

Browse filesBrowse files
committed
[#4003] A few more form_themes config changes
1 parent 2962e14 commit 695cb20
Copy full SHA for 695cb20

File tree

Expand file treeCollapse file tree

2 files changed

+10
-20
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-20
lines changed

‎book/forms.rst

Copy file name to clipboardExpand all lines: book/forms.rst
+5-10Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,9 +1578,8 @@ file:
15781578
15791579
# app/config/config.yml
15801580
twig:
1581-
form:
1582-
resources:
1583-
- 'AcmeTaskBundle:Form:fields.html.twig'
1581+
form_themes:
1582+
- 'AcmeTaskBundle:Form:fields.html.twig'
15841583
# ...
15851584
15861585
.. code-block:: xml
@@ -1594,9 +1593,7 @@ file:
15941593
http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd">
15951594
15961595
<twig:config>
1597-
<twig:form>
1598-
<twig:resource>AcmeTaskBundle:Form:fields.html.twig</twig:resource>
1599-
</twig:form>
1596+
<twig:theme>AcmeTaskBundle:Form:fields.html.twig</twig:theme>
16001597
<!-- ... -->
16011598
</twig:config>
16021599
</container>
@@ -1605,10 +1602,8 @@ file:
16051602
16061603
// app/config/config.php
16071604
$container->loadFromExtension('twig', array(
1608-
'form' => array(
1609-
'resources' => array(
1610-
'AcmeTaskBundle:Form:fields.html.twig',
1611-
),
1605+
'form_themes' => array(
1606+
'AcmeTaskBundle:Form:fields.html.twig',
16121607
),
16131608
// ...
16141609
));

‎cookbook/form/create_custom_field_type.rst

Copy file name to clipboardExpand all lines: cookbook/form/create_custom_field_type.rst
+5-10Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,27 +159,22 @@ link for details), create a ``gender_widget`` block to handle this:
159159
160160
# app/config/config.yml
161161
twig:
162-
form:
163-
resources:
164-
- 'AcmeDemoBundle:Form:fields.html.twig'
162+
form_themes:
163+
- 'AcmeDemoBundle:Form:fields.html.twig'
165164
166165
.. code-block:: xml
167166
168167
<!-- app/config/config.xml -->
169168
<twig:config>
170-
<twig:form>
171-
<twig:resource>AcmeDemoBundle:Form:fields.html.twig</twig:resource>
172-
</twig:form>
169+
<twig:form-theme>AcmeDemoBundle:Form:fields.html.twig</twig:form-theme>
173170
</twig:config>
174171
175172
.. code-block:: php
176173
177174
// app/config/config.php
178175
$container->loadFromExtension('twig', array(
179-
'form' => array(
180-
'resources' => array(
181-
'AcmeDemoBundle:Form:fields.html.twig',
182-
),
176+
'form_themes' => array(
177+
'AcmeDemoBundle:Form:fields.html.twig',
183178
),
184179
));
185180

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.