From 364220d990685dfd9c463e7b6afffdd5ba524724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20Perrin?= Date: Sat, 18 Nov 2017 13:35:40 +0200 Subject: [PATCH] Make use of %kernel.project_dir% parameter --- configuration/override_dir_structure.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"> - +