Skip to content

Commit 2511d35

Browse files
authored
Fix template 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);
1 parent 1702037 commit 2511d35

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)