From 5bc5d4706510f351a95090dd6ac14250143d708c Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sun, 15 Sep 2024 08:13:32 -0400 Subject: [PATCH] use /templates instead of /Resources/views The modern (and default) directory structure. --- templates.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates.rst b/templates.rst index 4567a018823..2ef5a04dc10 100644 --- a/templates.rst +++ b/templates.rst @@ -1294,7 +1294,7 @@ and leaves the repeated contents and HTML structure to some parent templates. .. code-block:: html+twig - {# app/Resources/views/blog/index.html.twig #} + {# app/templates/blog/index.html.twig #} {% extends 'base.html.twig' %} {# the line below is not captured by a "block" tag #} @@ -1481,7 +1481,7 @@ templates under an automatic namespace created after the bundle name. For example, the templates of a bundle called ``AcmeBlogBundle`` are available under the ``AcmeBlog`` namespace. If this bundle includes the template -``/vendor/acme/blog-bundle/Resources/views/user/profile.html.twig``, +``/vendor/acme/blog-bundle/templates/user/profile.html.twig``, you can refer to it as ``@AcmeBlog/user/profile.html.twig``. .. tip::