Exposes a template to userland.
author | Fabien Potencier fabien@symfony.com |
---|---|
package | Default |
display(array $context = array())
array
An array of parameters to pass to the template
displayBlock(string $name,array $context = array())
string
The block name to render
array
An array of parameters to pass to the template
getBlockNames(array $context = array()): array<mixed,string>
array
An array of parameters to pass to the template
array<mixed,string>
An array of defined template block names
getTemplateName(): string
string
hasBlock(string $name,array $context = array()): boolean
string
The block name
array
An array of parameters to pass to the template
boolean
render(array $context = array()): string
array
An array of parameters to pass to the template
string
The rendered template
renderBlock(string $name,array $context = array()): string
string
The block name to render
array
An array of parameters to pass to the template
string
The rendered block
env :
template :