Skip to content

Commit 183736a

Browse files
committed
Merge pull request #408 from richsage/template-override-correction
Template override correction
2 parents 69b6c5d + 8f38b70 commit 183736a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

book/templating.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ lives in a specific location:
403403

404404
In the :ref:`overiding-bundle-templates` section, you'll find out how each
405405
template living inside the ``AcmeBlogBundle``, for example, can be overridden
406-
by placing a template of the same name in the ``app/Resources/AcmeBlog/views/``
406+
by placing a template of the same name in the ``app/Resources/AcmeBlogBundle/views/``
407407
directory. This gives the power to override templates from any vendor bundle.
408408

409409
.. tip::
@@ -952,9 +952,10 @@ We learned in the :ref:`template-naming-locations` section that the template
952952
in question lives at ``Resources/views/Blog/index.html.twig`` inside the
953953
``AcmeBlogBundle`` bundle. To override the bundle template, copy the ``index.html.twig``
954954
template to ``app/Resources/AcmeBlogBundle/views/Blog/index.html.twig`` (the
955-
``AcmeBlogBundle`` directory might not exist). Now, when the
956-
``AcmeBlogBundle:Blog:index.html.twig`` template is rendered, Symfony2 will look
957-
first for the template at
955+
``AcmeBlogBundle`` directory might not exist).
956+
957+
Now, when the ``AcmeBlogBundle:Blog:index.html.twig`` template is rendered,
958+
Symfony2 will look first for the template at
958959
``app/Resources/AcmeBlogBundle/views/Blog/index.html.twig`` before looking
959960
at ``src/Acme/BlogBundle/Resources/views/Blog/index.html.twig``. You're
960961
now free to customize the template for your application.

0 commit comments

Comments
 (0)