\Barn2\PTP_LibTemplate_Loader

An object which can load PHP templates.

Summary

Methods
Constants
get_template()
load_template()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get_template()

get_template(string  $template_name,array  $args = array()): string

Return the HTML for the specified template.

Parameters

string $template_name

The template name (e.g. 'path/to/template.php')

array $args

The template args.

Returns

string —

The template HTML.

load_template()

load_template(string  $template_name,array  $args = array())

Echo (output) the HTML for the specified template.

Parameters

string $template_name

The template name (e.g. 'path/to/template.php')

array $args

The template args.