File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ format (see :ref:`template-naming-locations`).
13
13
Twig also natively offers a feature called "namespaced paths", and support
14
14
is built-in automatically for all of your bundles.
15
15
16
-
17
16
Take the following paths as an example:
18
17
19
18
.. code-block :: jinja
@@ -55,25 +54,23 @@ directory:
55
54
.. code-block :: xml
56
55
57
56
<!-- app/config/config.xml -->
58
-
59
57
<?xml version =" 1.0" ?>
60
58
<container xmlns =" http://symfony.com/schema/dic/services"
61
59
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
62
60
xmlns : twig =" http://symfony.com/schema/dic/twig"
63
- >
61
+ >
64
62
65
63
<twig : config debug =" %kernel.debug%" strict-variables =" %kernel.debug%" >
66
64
<twig : path namespace =" foo_bar" >%kernel.root_dir%/../vendor/acme/foo-bar/templates</twig : path >
67
65
</twig : config >
68
66
</container >
69
67
70
-
71
68
.. code-block :: php
72
69
73
70
// app/config/config.php
74
71
$container->loadFromExtension('twig', array(
75
72
'paths' => array(
76
- '%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar'
73
+ '%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar',
77
74
);
78
75
));
79
76
You can’t perform that action at this time.
0 commit comments