Skip to content

Commit

Permalink
use /templates instead of /Resources/views
Browse files Browse the repository at this point in the history
The modern (and default) directory structure.
  • Loading branch information
tacman authored and javiereguiluz committed Sep 16, 2024
1 parent f18da69 commit 5bc5d47
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 5bc5d47

Please sign in to comment.