Skip to content

Commit 7832d83

Browse files
committed
bug #6561 About Templating Naming Pattern (raulconti)
This PR was merged into the 2.3 branch. Discussion ---------- About Templating Naming Pattern | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | If I'm not wrong, the correct way to use the namespaced syntax is omitting the word "Bundle". This work for me: `@App/Hello/index.html.twig` However this doesn't: `@AppBundle/Hello/index.html.twig` Commits ------- 8b7efb0 fixing special shortcut syntax
2 parents ef3ccd9 + 8b7efb0 commit 7832d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ The Symfony templating engine is explained in great detail in the
492492
.. sidebar:: Templating Naming Pattern
493493

494494
You can also put templates in the ``Resources/views`` directory of a bundle and
495-
reference them with a special shortcut syntax like ``@AppBundle/Hello/index.html.twig``
496-
or ``@AppBundle/layout.html.twig``. These would live in at ``Resources/views/Hello/index.html.twig``
495+
reference them with a special shortcut syntax like ``@App/Hello/index.html.twig``
496+
or ``@App/layout.html.twig``. These would live in at ``Resources/views/Hello/index.html.twig``
497497
and ``Resources/views/layout.html.twig`` inside the bundle respectively.
498498

499499
.. index::

0 commit comments

Comments
 (0)