Skip to content

Commit 4a9467e

Browse files
committed
bug #11251 Fix template name reference (stoccc)
This PR was merged into the 4.2 branch. Discussion ---------- Fix template name reference As written here https://symfony.com/doc/current/templating.html#referencing-templates-in-a-bundle it seems that `{% extends "@!FOSUserBundle/Registration/confirmed.html.twig" %}` is not correct. > @AcmeBlog/Blog/index.html.twig: This syntax is used to specify a template for a specific page. The three parts of the string, each > separated by a slash (/), mean the following: > > @AcmeBlog: is the bundle name **without** the Bundle suffix. This template lives in the AcmeBlogBundle (e.g. src/Acme/BlogBundle); <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 2511d35 Fix template reference
2 parents c647b2d + 2511d35 commit 4a9467e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/override.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extend from the original template, not from the overridden one:
4545
4646
{# templates/bundles/FOSUserBundle/Registration/confirmed.html.twig #}
4747
{# the special '!' prefix avoids errors when extending from an overridden template #}
48-
{% extends "@!FOSUserBundle/Registration/confirmed.html.twig" %}
48+
{% extends "@!FOSUser/Registration/confirmed.html.twig" %}
4949
5050
{% block some_block %}
5151
...

0 commit comments

Comments
 (0)