Skip to content

Commit 5bc5d47

Browse files
tacmanjaviereguiluz
authored andcommitted
use /templates instead of /Resources/views
The modern (and default) directory structure.
1 parent f18da69 commit 5bc5d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ and leaves the repeated contents and HTML structure to some parent templates.
12941294

12951295
.. code-block:: html+twig
12961296

1297-
{# app/Resources/views/blog/index.html.twig #}
1297+
{# app/templates/blog/index.html.twig #}
12981298
{% extends 'base.html.twig' %}
12991299

13001300
{# the line below is not captured by a "block" tag #}
@@ -1481,7 +1481,7 @@ templates under an automatic namespace created after the bundle name.
14811481

14821482
For example, the templates of a bundle called ``AcmeBlogBundle`` are available
14831483
under the ``AcmeBlog`` namespace. If this bundle includes the template
1484-
``<your-project>/vendor/acme/blog-bundle/Resources/views/user/profile.html.twig``,
1484+
``<your-project>/vendor/acme/blog-bundle/templates/user/profile.html.twig``,
14851485
you can refer to it as ``@AcmeBlog/user/profile.html.twig``.
14861486

14871487
.. tip::

0 commit comments

Comments
 (0)