Spec-Zone.ru › Symfony 4.0

TemplateController

class TemplateController

TemplateController.

Methods

__construct(Environment $twig = null, EngineInterface $templating = null)
templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

Отображает шаблон.

Details

__construct(Environment $twig = null, EngineInterface $templating = null)

Parameters

Environment $twig
EngineInterface $templating

templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null)

Отображает шаблон.

Parameters

string $template Имя шаблона
int $maxAge Максимальная продолжительность кеширования для клиента
int $sharedAge Максимальная продолжительность кеширования для общего (прокси) кеширования
bool $private Применять ли кеширование только для кэшей клиента

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API