From 2511d350e504c5a5bf201d418a38a460bcb7fbce Mon Sep 17 00:00:00 2001 From: stoccc Date: Fri, 29 Mar 2019 16:47:26 +0100 Subject: [PATCH] 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); --- bundles/override.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/override.rst b/bundles/override.rst index b73b245d13b..0eac78b4c8d 100644 --- a/bundles/override.rst +++ b/bundles/override.rst @@ -45,7 +45,7 @@ extend from the original template, not from the overridden one: {# templates/bundles/FOSUserBundle/Registration/confirmed.html.twig #} {# the special '!' prefix avoids errors when extending from an overridden template #} - {% extends "@!FOSUserBundle/Registration/confirmed.html.twig" %} + {% extends "@!FOSUser/Registration/confirmed.html.twig" %} {% block some_block %} ...