File tree 1 file changed +2
-13
lines changed
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
458
458
459
459
Although templates are usually rendered in controllers and services, you can
460
460
render 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:
462
463
463
464
.. configuration-block ::
464
465
@@ -476,10 +477,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
476
477
maxAge : 86400
477
478
sharedAge : 86400
478
479
479
- # optionally you can define some arguments passed to the template
480
- site_name : ' ACME'
8000
481
- theme : ' dark'
482
-
483
480
.. code-block :: xml
484
481
485
482
<!-- config/routes.xml -->
@@ -497,10 +494,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
497
494
<!-- special options defined by Symfony to set the page cache -->
498
495
<default key =" maxAge" >86400</default >
499
496
<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 >
504
497
</route >
505
498
</routes >
506
499
@@ -520,10 +513,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
520
513
// special options defined by Symfony to set the page cache
521
514
'maxAge' => 86400,
522
515
'sharedAge' => 86400,
523
-
524
- // optionally you can define some arguments passed to the template
525
- 'site_name' => 'ACME',
526
- 'theme' => 'dark',
527
516
])
528
517
;
529
518
};
You can’t perform that action at this time.
0 commit comments