Renderer
in package
Template Renderer
Prepares variables for inclusion in a template, as well as handling variables for use in header and footer.
Table of Contents
Methods
- output() : mixed
- Output Page
- addCommonURLs() : mixed
Methods
output()
Output Page
public
static output(string $template[, array<string|int, mixed> $data = array() ][, mixed $template_only = false ]) : mixed
Assembles a completed page from template and sends it to output.
Parameters
- $template : string
-
The name of the template file to load.
- $data : array<string|int, mixed> = array()
-
An associative array of data to be made available to the template.
- $template_only : mixed = false
addCommonURLs()
private
static addCommonURLs(mixed $data) : mixed
Parameters
- $data : mixed