Skip to content

Commit 73ffb51

Browse files
committed
minor #7610 Update render_without_controller.rst (atailouloute)
This PR was merged into the 2.7 branch. Discussion ---------- Update render_without_controller.rst Remove extra spaces Commits ------- c9e7e0d Update render_without_controller.rst
2 parents 56bc081 + c9e7e0d commit 73ffb51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templating/render_without_controller.rst

Lines changed: 6 additions & 6 deletions
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)