Skip to content

Commit c9e7e0d

Browse files
atailoulouteAhmed TAILOULOUTE
authored and
Ahmed TAILOULOUTE
committed
Update render_without_controller.rst
1 parent 0f5cf62 commit c9e7e0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templating/render_without_controller.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ can do this without creating a controller:
4545
4646
$collection = new RouteCollection();
4747
$collection->add('acme_privacy', new Route('/privacy', array(
48-
'_controller' => 'FrameworkBundle:Template:template',
49-
'template' => 'static/privacy.html.twig',
48+
'_controller' => 'FrameworkBundle:Template:template',
49+
'template' => 'static/privacy.html.twig',
5050
)));
5151
5252
return $collection;
@@ -120,10 +120,10 @@ other variables in your route, you can control exactly how your page is cached:
120120
121121
$collection = new RouteCollection();
122122
$collection->add('acme_privacy', new Route('/privacy', array(
123-
'_controller' => 'FrameworkBundle:Template:template',
124-
'template' => 'static/privacy.html.twig',
125-
'maxAge' => 86400,
126-
'sharedAge' => 86400,
123+
'_controller' => 'FrameworkBundle:Template:template',
124+
'template' => 'static/privacy.html.twig',
125+
'maxAge' => 86400,
126+
'sharedAge' => 86400,
127127
)));
128128
129129
return $collection;

0 commit comments

Comments
 (0)