TemplateRenderer
in package
Table of Contents
Methods
- render() : string
- Render a template with the provided context.
Methods
render()
Render a template with the provided context.
public
static render(string $template[, array<string|int, mixed> $context = [] ]) : string
Parameters
- $template : string
-
Template name without extension.
- $context : array<string|int, mixed> = []
-
Variables passed to the template.