class TemplateController
TemplateController.
| __construct(Environment $twig = null, EngineInterface $templating = null) | ||
| templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null) Renders a template. |
| Environment | $twig | |
| EngineInterface | $templating |
Renders a template.
| string | $template | The template name |
| int | $maxAge | Max age for client caching |
| int | $sharedAge | Max age for shared (proxy) caching |
| bool | $private | Whether or not caching should apply for client caches only |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.html