Symfony\Bridge\Twig\TwigEngine::render
Renders a template.
Signature
public function render(mixed
$name,
array
$parameters )
Parameters
$name
— mixed- A template name
$parameters
— array- An array of parameters to pass to the template
Returns
- string
- The evaluated template as a string
Errors/Exceptions
-
InvalidArgumentException
- if the template does not exist
-
RuntimeException
- if the template cannot be rendered