@@ -483,15 +483,15 @@ rendered.
483
483
484
484
.. code-block :: yaml
485
485
486
- # app/ config/config.yml
486
+ # config/packages/twig.yaml
487
487
twig :
488
488
form_themes :
489
489
- ' form/fields.html.twig'
490
490
# ...
491
491
492
492
.. code-block :: xml
493
493
494
- <!-- app/ config/config .xml -->
494
+ <!-- config/packages/twig .xml -->
495
495
<?xml version =" 1.0" encoding =" UTF-8" ?>
496
496
<container xmlns =" http://symfony.com/schema/dic/services"
497
497
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -509,7 +509,7 @@ rendered.
509
509
510
510
.. code-block :: php
511
511
512
- // app/ config/config .php
512
+ // config/packages/twig .php
513
513
$container->loadFromExtension('twig', array(
514
514
'form_themes' => array(
515
515
'form/fields.html.twig',
@@ -526,15 +526,15 @@ resource to use such a layout:
526
526
527
527
.. code-block :: yaml
528
528
529
- # app/ config/config.yml
529
+ # config/packages/twig.yaml
530
530
twig :
531
531
form_themes :
532
532
- ' form_table_layout.html.twig'
533
533
# ...
534
534
535
535
.. code-block :: xml
536
536
537
- <!-- app/ config/config .xml -->
537
+ <!-- config/packages/twig .xml -->
538
538
<?xml version =" 1.0" encoding =" UTF-8" ?>
539
539
<container xmlns =" http://symfony.com/schema/dic/services"
540
540
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -552,7 +552,7 @@ resource to use such a layout:
552
552
553
553
.. code-block :: php
554
554
555
- // app/ config/config .php
555
+ // config/packages/twig .php
556
556
$container->loadFromExtension('twig', array(
557
557
'form_themes' => array(
558
558
'form_table_layout.html.twig',
@@ -575,24 +575,24 @@ PHP
575
575
~~~
576
576
577
577
By using the following configuration, any customized form fragments inside the
578
- ``templates/Form `` folder will be used globally when a
578
+ ``templates/form `` folder will be used globally when a
579
579
form is rendered.
580
580
581
581
.. configuration-block ::
582
582
583
583
.. code-block :: yaml
584
584
585
- # app/ config/config.yml
585
+ # config/packages/framework.yaml
586
586
framework :
587
587
templating :
588
588
form :
589
589
resources :
590
- - ' AppBundle :Form'
590
+ - ' App :Form'
591
591
# ...
592
592
593
593
.. code-block :: xml
594
594
595
- <!-- app/ config/config .xml -->
595
+ <!-- config/packages/framework .xml -->
596
596
<?xml version =" 1.0" encoding =" UTF-8" ?>
597
597
<container xmlns =" http://symfony.com/schema/dic/services"
598
598
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -605,7 +605,7 @@ form is rendered.
605
605
<framework : config >
606
606
<framework : templating >
607
607
<framework : form >
608
- <framework : resource >AppBundle :Form</framework : resource >
608
+ <framework : resource >App :Form</framework : resource >
609
609
</framework : form >
610
610
</framework : templating >
611
611
<!-- ... -->
@@ -614,13 +614,13 @@ form is rendered.
614
614
615
615
.. code-block :: php
616
616
617
- // app/ config/config .php
617
+ // config/packages/framework .php
618
618
// PHP
619
619
$container->loadFromExtension('framework', array(
620
620
'templating' => array(
621
621
'form' => array(
622
622
'resources' => array(
623
- 'AppBundle :Form',
623
+ 'App :Form',
624
624
),
625
625
),
626
626
),
@@ -636,7 +636,7 @@ resource to use such a layout:
636
636
637
637
.. code-block :: yaml
638
638
639
- # app/ config/config.yml
639
+ # config/packages/framework.yaml
640
640
framework :
641
641
templating :
642
642
form :
@@ -645,7 +645,7 @@ resource to use such a layout:
645
645
646
646
.. code-block :: xml
647
647
648
- <!-- app/ config/config .xml -->
648
+ <!-- config/packages/framework .xml -->
649
649
<?xml version =" 1.0" encoding =" UTF-8" ?>
650
650
<container xmlns =" http://symfony.com/schema/dic/services"
651
651
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -667,7 +667,7 @@ resource to use such a layout:
667
667
668
668
.. code-block :: php
669
669
670
- // app/ config/config .php
670
+ // config/packages/framework .php
671
671
$container->loadFromExtension('framework', array(
672
672
'templating' => array(
673
673
'form' => array(
0 commit comments