Контроллер шаблонов
класс TemplateController реализует ContainerAwareInterface
Контроллер шаблонов.
Трейты
| ContainerAwareTrait | Трейт ContainerAware. |
Методы
| setContainer(ContainerInterface $container = null) Устанавливает контейнер. | из ContainerAwareTrait | |
| Response | templateAction(string $template, int|null $maxAge = null, int|null $sharedAge = null, bool|null $private = null) Отображает шаблон. |
Детали
setContainer(ContainerInterface $container = null)
Устанавливает контейнер.
Параметры
| ContainerInterface | $container | Экземпляр ContainerInterface или null |
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.2/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.html