diff --git a/cookbook/templating/render_without_controller.rst b/cookbook/templating/render_without_controller.rst
index e59506896b0..cd9a6b8fc70 100644
--- a/cookbook/templating/render_without_controller.rst
+++ b/cookbook/templating/render_without_controller.rst
@@ -10,7 +10,7 @@ a simple template that doesn't need any data passed into it, you can avoid
creating the controller entirely, by using the built-in ``FrameworkBundle:Template:template``
controller.
-For example, suppose you want to render a ``AppBundle:Static:privacy.html.twig``
+For example, suppose you want to render a ``static/privacy.html.twig``
template, which doesn't require that any variables are passed to it. You
can do this without creating a controller:
@@ -22,7 +22,7 @@ can do this without creating a controller:
path: /privacy
defaults:
_controller: FrameworkBundle:Template:template
- template: 'AppBundle:Static:privacy.html.twig'
+ template: static/privacy.html.twig
.. code-block:: xml
@@ -34,7 +34,7 @@ can do this without creating a controller:
FrameworkBundle:Template:template
- AppBundle:Static:privacy.html.twig
+ static/privacy.html.twig
@@ -46,7 +46,7 @@ can do this without creating a controller:
$collection = new RouteCollection();
$collection->add('acme_privacy', new Route('/privacy', array(
'_controller' => 'FrameworkBundle:Template:template',
- 'template' => 'AppBundle:Static:privacy.html.twig',
+ 'template' => 'static/privacy.html.twig',
)));
return $collection;
@@ -93,7 +93,7 @@ other variables in your route, you can control exactly how your page is cached:
path: /privacy
defaults:
_controller: FrameworkBundle:Template:template
- template: 'AppBundle:Static:privacy.html.twig'
+ template: 'static/privacy.html.twig'
maxAge: 86400
sharedAge: 86400
@@ -107,7 +107,7 @@ other variables in your route, you can control exactly how your page is cached:
FrameworkBundle:Template:template
- AppBundle:Static:privacy.html.twig
+ static/privacy.html.twig
86400
86400
@@ -121,7 +121,7 @@ other variables in your route, you can control exactly how your page is cached:
$collection = new RouteCollection();
$collection->add('acme_privacy', new Route('/privacy', array(
'_controller' => 'FrameworkBundle:Template:template',
- 'template' => 'AppBundle:Static:privacy.html.twig',
+ 'template' => 'static/privacy.html.twig',
'maxAge' => 86400,
'sharedAge' => 86400,
)));