Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Controller\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, Boolean|null $private = null)

Renders a template.

Details

in ContainerAware at line 37
public setContainer(ContainerInterface $container = null)

Sets the Container.

Parameters

ContainerInterface $container A ContainerInterface instance

at line 34
public Response templateAction(string $template, int|null $maxAge = null, int|null $sharedAge = null, Boolean|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
Boolean|null $private Whether or not caching should apply for client caches only

Return Value

Response A Response instance