diff --git a/configuration/override_dir_structure.rst b/configuration/override_dir_structure.rst
index 809c71244ea..9b95b973194 100644
--- a/configuration/override_dir_structure.rst
+++ b/configuration/override_dir_structure.rst
@@ -104,7 +104,7 @@ define your own templates directory (or directories):
# app/config/config.yml
twig:
# ...
- paths: ["%kernel.root_dir%/../templates"]
+ paths: ["%kernel.project_dir%/templates"]
.. code-block:: xml
@@ -119,7 +119,7 @@ define your own templates directory (or directories):
http://symfony.com/schema/dic/twig/twig-1.0.xsd">
- %kernel.root_dir%/../templates
+ %kernel.project_dir%/templates
@@ -129,7 +129,7 @@ define your own templates directory (or directories):
// app/config/config.php
$container->loadFromExtension('twig', array(
'paths' => array(
- '%kernel.root_dir%/../templates',
+ '%kernel.project_dir%/templates',
),
));
@@ -197,7 +197,7 @@ You also need to change the ``extra.symfony-web-dir`` option in the
http://symfony.com/schema/dic/assetic/assetic-1.0.xsd">
-
+