Template
in package
FinalYes
Twig-based template.
Table of Contents
Properties
- $engine : Twig_Environment
- Twig_Environment instance.
Methods
- __construct() : mixed
- Initialize Template.
- load() : string
- Get compiled template.
Properties
$engine
Twig_Environment instance.
private
Twig_Environment
$engine
= null
Methods
__construct()
Initialize Template.
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
load()
Get compiled template.
public
load(string $templatePath[, array<string|int, mixed> $params = [] ][, string $ext = 'html' ]) : string
Parameters
- $templatePath : string
-
Template Path.
- $params : array<string|int, mixed> = []
-
(optional) Template Variables.
- $ext : string = 'html'
-
(optional) Template file extension. Default is "html".
Return values
string —Compiled template.