trait Template

Methods

string
render(string $sTemplate, array $aVars = array())

Render a template

void
addViewNamespace(string $sNamespace, string $sDirectory, string $sExtension = '')

Add a namespace to the template system

Details

at line line 27
string render(string $sTemplate, array $aVars = array())

Render a template

Parameters

string $sTemplate The name of template to be rendered
array $aVars The template vars

Return Value

string The template content

at line line 41
void addViewNamespace(string $sNamespace, string $sDirectory, string $sExtension = '')

Add a namespace to the template system

Parameters

string $sNamespace The namespace name
string $sDirectory The namespace directory
string $sExtension The extension to append to template names

Return Value

void