Property | Type | Description | |
---|---|---|---|
$app | |||
$safe | boolean | ||
$twigKey | string |
Method | Description | |
---|---|---|
__construct ( Silex\Application $app, boolean $safe = false ) | Set up the object. | |
hasTemplate ( string $template ) : boolean | Check if the template exists. | |
postProcess ( |
Post-process the rendered HTML: insert the snippets, and stuff. | |
render ( string $templateFile, array $context = [], array $globals = [] ) : |
Render a template, possibly store it in cache. Or, if applicable, return the cached result. |
public __construct ( Silex\Application $app, boolean $safe = false ) | ||
$app | Silex\Application | |
$safe | boolean |
public hasTemplate ( string $template ) : boolean | ||
$template | string | The name of the template. |
return | boolean |
public postProcess ( |
||
$request | ||
$response |