From 8ab08faaa73dc2e5b6076024b36913cd712c36fc Mon Sep 17 00:00:00 2001 From: Richard van Laak Date: Wed, 17 Nov 2021 21:13:18 +0100 Subject: [PATCH] Update override_template.md --- src/Resources/doc/override_template.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Resources/doc/override_template.md b/src/Resources/doc/override_template.md index db052e9..af85e63 100644 --- a/src/Resources/doc/override_template.md +++ b/src/Resources/doc/override_template.md @@ -9,15 +9,15 @@ You can override the default template in many ways. ```yaml apy_breadcrumb_trail: - template: APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig + template: @APYBreadcrumbTrail/breadcrumbtrail.html.twig ``` - - You can define the template in a breadcrumb annotation: + - You can define another template in a breadcrumb annotation: ```php /** * @Breadcrumb("My breadcrumb", route="my_route") - * @Breadcrumb(template="APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig") + * @Breadcrumb(template="@APYBreadcrumbTrail/breadcrumbtrail.html.twig") */ ``` @@ -25,7 +25,7 @@ Or ```php /** - * @Breadcrumb("My breadcrumb", route="my_route", template="APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig") + * @Breadcrumb("My breadcrumb", route="my_route", template="@APYBreadcrumbTrail/breadcrumbtrail.html.twig") */ ``` @@ -35,11 +35,11 @@ Or /** * @see \APY\BreadcrumbTrailBundle\BreadcrumbTrail\Trail::setTemplate() */ -$trail->setTemplate('APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig'); +$trail->setTemplate('@APYBreadcrumbTrail/breadcrumbtrail.html.twig'); ``` - You can define the template when you render the breadcrumb trail in your twig file: ```twig -{{ apy_breadcrumb_trail_render('APYBreadcrumbTrailBundle::breadcrumbtrail.html.twig') }} -``` \ No newline at end of file +{{ apy_breadcrumb_trail_render('@APYBreadcrumbTrail/breadcrumbtrail.html.twig') }} +```