File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,8 @@ Rendering a Template Directly from a Route
458458
459459Although templates are usually rendered in controllers and services, you can
460460render static pages that don't need any variables directly from the route
461- definition. Use the special ``TemplateController `` provided by Symfony:
461+ definition. Use the special :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ TemplateController `
462+ provided by Symfony:
462463
463464.. configuration-block ::
464465
@@ -476,10 +477,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
476477 maxAge : 86400
477478 sharedAge : 86400
478479
479- # optionally you can define some arguments passed to the template
480- site_name : ' ACME'
481- theme : ' dark'
482-
483480 .. code-block :: xml
484481
485482 <!-- config/routes.xml -->
@@ -497,10 +494,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
497494 <!-- special options defined by Symfony to set the page cache -->
498495 <default key =" maxAge" >86400</default >
499496 <default key =" sharedAge" >86400</default >
500-
501- <!-- optionally you can define some arguments passed to the template -->
502- <default key =" site_name" >ACME</default >
503- <default key =" theme" >dark</default >
504497 </route >
505498 </routes >
506499
@@ -520,10 +513,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
520513 // special options defined by Symfony to set the page cache
521514 'maxAge' => 86400,
522515 'sharedAge' => 86400,
523-
524- // optionally you can define some arguments passed to the template
525- 'site_name' => 'ACME',
526- 'theme' => 'dark',
527516 ])
528517 ;
529518 };
You can’t perform that action at this time.
0 commit comments