Symfony\Component\Templating\PhpEngine::render
Renders a template.
Signature
public function render(mixed
$name,
array
$parameters )
Parameters
$name
— mixed- A template name or a TemplateReferenceInterface instance
$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