Spec-Zone.ru › Symfony 4.1

TemplateController

class TemplateController

TemplateController.

Методы

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

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

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

Подробности

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

Параметры

Environment $twig
EngineInterface $templating

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

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

Параметры

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

Возвращаемое значение

Response

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

Параметры

string $template
int $maxAge
int $sharedAge
bool $private

Возвращаемое значение

Response

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

Spec-Zone.ru

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