Constructor
Support_Resources_DefaultTemplateEngine
__construct
()
Assign a variable to be available to any template processed by this engine
void
assign
(string $variable, mixed $value)
-
string
$variable: The name of the variable
-
mixed
$value: The value to assign
Output a template
void
display
(string $template, [string $cache_id = null], [string $compile_id = null])
-
string
$template: The path to the template, relative to template_dir
-
string
$cache_id: Optional cache identifier
-
string
$compile_id: Optional compile identifier
Return a processed template as a string
string
fetch
(string $template, [string $cache_id = null], [string $compile_id = null])
-
string
$template: The path to the template, relative to template_dir
-
string
$cache_id: Optional cache identifier
-
string
$compile_id: Optional compile identifier
Return the value assigned to the named variable, or all assigned variables if not provided.
mixed
get_template_vars
([string $variable = null])
-
string
$variable: The name of the variable to retrieve