TemplateController

class TemplateController implements ContainerAwareInterface

TemplateController.

Traits

ContainerAwareTrait ContainerAware trait.

Methods

setContainer(ContainerInterface $container = null)

Sets the container.

from ContainerAwareTrait
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
doc_Symfony
2016-10-28 06:34:14
Comments
Leave a Comment

Please login to continue.