File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ rendered.
473
473
# app/config/config.yml
474
474
twig :
475
475
form_themes :
476
- - 'form/fields.html.twig'
476
+ - ' form/fields.html.twig'
477
477
# ...
478
478
479
479
.. code-block :: xml
@@ -489,7 +489,7 @@ rendered.
489
489
// app/config/config.php
490
490
$container->loadFromExtension('twig', array(
491
491
'form_themes' => array(
492
- 'form/fields.html.twig',
492
+ 'form/fields.html.twig',
493
493
),
494
494
495
495
// ...
@@ -669,7 +669,7 @@ customize the ``name`` field only:
669
669
670
670
<?php echo $view['form']->widget($form['name']); ?>
671
671
672
- <!-- app/Resources/views/Form /_product_name_widget.html.php -->
672
+ <!-- app/Resources/views/form /_product_name_widget.html.php -->
673
673
<div class="text_widget">
674
674
<?php echo $view['form']->block('form_widget_simple') ?>
675
675
</div>
@@ -726,7 +726,7 @@ You can also override the markup for an entire field row using the same method:
726
726
727
727
<?php echo $view['form']->row($form['name']); ?>
728
728
729
- <!-- app/Resources/views/Form /_product_name_row.html.php -->
729
+ <!-- app/Resources/views/form /_product_name_row.html.php -->
730
730
<div class="name_row">
731
731
<?php echo $view['form']->label($form) ?>
732
732
<?php echo $view['form']->errors($form) ?>
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ to define form output.
271
271
PHP
272
272
~~~
273
273
274
- To automatically include the customized templates from the ``app/Resources/views/Form ``
274
+ To automatically include the customized templates from the ``app/Resources/views/form ``
275
275
directory created earlier in *all * templates, modify your application configuration
276
276
file:
277
277
@@ -284,7 +284,7 @@ file:
284
284
templating :
285
285
form :
286
286
resources :
287
- - ' Form '
287
+ - ' form '
288
288
# ...
289
289
290
290
.. code-block :: xml
@@ -300,7 +300,7 @@ file:
300
300
<framework : config >
301
301
<framework : templating >
302
302
<framework : form >
303
- <framework : resource >Form </framework : resource >
303
+ <framework : resource >form </framework : resource >
304
304
</framework : form >
305
305
</framework : templating >
306
306
<!-- ... -->
@@ -314,14 +314,14 @@ file:
314
314
'templating' => array(
315
315
'form' => array(
316
316
'resources' => array(
317
- 'Form ',
317
+ 'form ',
318
318
),
319
319
),
320
320
),
321
321
// ...
322
322
));
323
323
324
- Any fragments inside the ``app/Resources/views/Form `` directory are now used
324
+ Any fragments inside the ``app/Resources/views/form `` directory are now used
325
325
globally to define form output.
326
326
327
327
.. _`form_div_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
You can’t perform that action at this time.
0 commit comments