Template
class Template
Properties
private | $env | ||
private array | $lastCompiled | A stack of the last compiled templates. |
|
protected | $path | ||
protected | $page | ||
protected | $layout | ||
protected | $theme | ||
protected | $param | ||
protected | $controller | ||
protected | $session |
Methods
__construct(Environment $env, $path)
This method is for internal use only and should never be called directly (use Environment::load() instead).
string
render(array $data = [])
Renders the template.
mergeGlobals($data)
No description
getContents($data)
No description
array
gatherData($data)
Get the data bound to the view instance.
evaluatePath($path, $data)
No description
handleException($ex, $level)
No description
string
getSourceFilePath()
No description
Details
at line 43
__construct(Environment $env, $path)
internal |
This method is for internal use only and should never be called directly (use Environment::load() instead).
at line 58
string
render(array $data = [])
Renders the template.
at line 73
protected
mergeGlobals($data)
No description
at line 83
protected
getContents($data)
No description
at line 94
protected array
gatherData($data)
Get the data bound to the view instance.
at line 106
protected
evaluatePath($path, $data)
No description
at line 134
protected
handleException($ex, $level)
No description
at line 151
protected string
getMessage(Exception $e)
Get the exception message for an exception.
at line 156
protected
getSourceFilePath()
No description