File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ file:
179
179
# app/config/config.yml
180
180
twig :
181
181
form_themes :
182
+ - ' ...'
182
183
- ' form/fields.html.twig'
183
184
# ...
184
185
@@ -194,6 +195,7 @@ file:
194
195
http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd" >
195
196
196
197
<twig : config >
198
+ <twig : theme >...</twig : theme >
197
199
<twig : theme >form/fields.html.twig</twig : theme >
198
200
<!-- ... -->
199
201
</twig : config >
@@ -204,11 +206,17 @@ file:
204
206
// app/config/config.php
205
207
$container->loadFromExtension('twig', array(
206
208
'form_themes' => array(
209
+ '...',
207
210
'form/fields.html.twig',
208
211
),
209
212
// ...
210
213
));
211
214
215
+ .. note ::
216
+
217
+ Add your custom theme at the end of the ``form_themes `` list because each
218
+ theme overrides all the previous themes.
219
+
212
220
Any blocks inside the ``fields.html.twig `` template are now used globally
213
221
to define form output.
214
222
You can’t perform that action at this time.
0 commit comments