Skip to content

[Templating] use /templates instead of /Resources/views #20219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 #}
Expand Down Expand Up @@ -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
``<your-project>/vendor/acme/blog-bundle/Resources/views/user/profile.html.twig``,
``<your-project>/vendor/acme/blog-bundle/templates/user/profile.html.twig``,
you can refer to it as ``@AcmeBlog/user/profile.html.twig``.

.. tip::
Expand Down
Loading