Spec-Zone.ru › Symfony 3.4

TemplateController

class TemplateController implements ContainerAwareInterface

Контроллер шаблонов.

Методы

__construct(Environment $twig = null, EngineInterface $templating = null)
setContainer(ContainerInterface $container = null) устаревший
Response templateAction(string $template, int|null $maxAge = null, int|null $sharedAge = null, bool|null $private = null)

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

Детали

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

Параметры

Environment $twig
EngineInterface $templating

setContainer(ContainerInterface $container = null) устаревший

устаревший

since версия 3.4, будет удален в 4.0 вместе с типом ContainerAwareInterface.

Параметры

ContainerInterface $container

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

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

Параметры

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

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

Response Экземпляр Response

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

Spec-Zone.ru

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