@@ -10,7 +10,7 @@ a simple template that doesn't need any data passed into it, you can avoid
10
10
creating the controller entirely, by using the built-in ``FrameworkBundle:Template:template ``
11
11
controller.
12
12
13
- For example, suppose you want to render a ``AppBundle:Static: privacy.html.twig ``
13
+ For example, suppose you want to render a ``static/ privacy.html.twig ``
14
14
template, which doesn't require that any variables are passed to it. You
15
15
can do this without creating a controller:
16
16
@@ -22,7 +22,7 @@ can do this without creating a controller:
22
22
path : /privacy
23
23
defaults :
24
24
_controller : FrameworkBundle:Template:template
25
- template : ' AppBundle:Static: privacy.html.twig'
25
+ template : static/ privacy.html.twig
26
26
27
27
.. code-block :: xml
28
28
@@ -34,7 +34,7 @@ can do this without creating a controller:
34
34
35
35
<route id =" acme_privacy" path =" /privacy" >
36
36
<default key =" _controller" >FrameworkBundle:Template:template</default >
37
- <default key =" template" >AppBundle:Static: privacy.html.twig</default >
37
+ <default key =" template" >static/ privacy.html.twig</default >
38
38
</route >
39
39
</routes >
40
40
@@ -46,7 +46,7 @@ can do this without creating a controller:
46
46
$collection = new RouteCollection();
47
47
$collection->add('acme_privacy', new Route('/privacy', array(
48
48
'_controller' => 'FrameworkBundle:Template:template',
49
- 'template' => 'AppBundle:Static: privacy.html.twig',
49
+ 'template' => 'static/ privacy.html.twig',
50
50
)));
51
51
52
52
return $collection;
@@ -93,7 +93,7 @@ other variables in your route, you can control exactly how your page is cached:
93
93
path : /privacy
94
94
defaults :
95
95
_controller : FrameworkBundle:Template:template
96
- template : ' AppBundle:Static: privacy.html.twig'
96
+ template : ' static/ privacy.html.twig'
97
97
maxAge : 86400
98
98
sharedAge : 86400
99
99
@@ -107,7 +107,7 @@ other variables in your route, you can control exactly how your page is cached:
107
107
108
108
<route id =" acme_privacy" path =" /privacy" >
109
109
<default key =" _controller" >FrameworkBundle:Template:template</default >
110
- <default key =" template" >AppBundle:Static: privacy.html.twig</default >
110
+ <default key =" template" >static/ privacy.html.twig</default >
111
111
<default key =" maxAge" >86400</default >
112
112
<default key =" sharedAge" >86400</default >
113
113
</route >
@@ -121,7 +121,7 @@ other variables in your route, you can control exactly how your page is cached:
121
121
$collection = new RouteCollection();
122
122
$collection->add('acme_privacy', new Route('/privacy', array(
123
123
'_controller' => 'FrameworkBundle:Template:template',
124
- 'template' => 'AppBundle:Static: privacy.html.twig',
124
+ 'template' => 'static/ privacy.html.twig',
125
125
'maxAge' => 86400,
126
126
'sharedAge' => 86400,
127
127
)));
0 commit comments