TemplateController

TemplateController

class TemplateController extends ContainerAware

TemplateController.

Methods

setContainer(ContainerInterface $container = null)

Sets the container.

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

Renders a template.

Details

setContainer(ContainerInterface $container = null)

Sets the container.

Parameters

ContainerInterface $container A ContainerInterface instance or null

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

Renders a template.

Parameters

string $template The template name
int|null $maxAge Max age for client caching
int|null $sharedAge Max age for shared (proxy) caching
bool|null $private Whether or not caching should apply for client caches only

Return Value

Response A Response instance

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部