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 0d5803b

Browse filesBrowse files
javiereguiluzweaverryan
authored andcommitted
Added file paths
1 parent 3b1b16d commit 0d5803b
Copy full SHA for 0d5803b

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Open diff view settings
Collapse file

‎reference/configuration/twig.rst‎

Copy file name to clipboardExpand all lines: reference/configuration/twig.rst
+6Lines changed: 6 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,15 @@ The values of the ``paths`` option are defined as ``key: value`` pairs where the
222222

223223
.. code-block:: yaml
224224
225+
# app/config/config.yml
225226
twig:
226227
# ...
227228
paths:
228229
'%kernel.root_dir%/../vendor/acme/foo-bar/templates': ~
229230
230231
.. code-block:: xml
231232
233+
<!-- app/config/config.xml -->
232234
<container xmlns="http://symfony.com/schema/dic/services"
233235
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
234236
xmlns:twig="http://symfony.com/schema/dic/twig"
@@ -243,6 +245,7 @@ The values of the ``paths`` option are defined as ``key: value`` pairs where the
243245
244246
.. code-block:: php
245247
248+
// app/config/config.php
246249
$container->loadFromExtension('twig', array(
247250
// ...
248251
'paths' => array(
@@ -262,13 +265,15 @@ for that directory:
262265

263266
.. code-block:: yaml
264267
268+
# app/config/config.yml
265269
twig:
266270
# ...
267271
paths:
268272
'%kernel.root_dir%/../vendor/acme/foo-bar/templates': 'foo_bar'
269273
270274
.. code-block:: xml
271275
276+
<!-- app/config/config.xml -->
272277
<container xmlns="http://symfony.com/schema/dic/services"
273278
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
274279
xmlns:twig="http://symfony.com/schema/dic/twig"
@@ -283,6 +288,7 @@ for that directory:
283288
284289
.. code-block:: php
285290
291+
# app/config/config.php
286292
$container->loadFromExtension('twig', array(
287293
// ...
288294
'paths' => array(

0 commit comments

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