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') }} +```