Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a9467e

Browse filesBrowse 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
Copy full SHA for 4a9467e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎bundles/override.rst

Copy file name to clipboardExpand all lines: bundles/override.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.