\Pop\View\TemplateAbstractTemplate

View template abstract class

Summary

Methods
Properties
Constants
getTemplate()
setTemplate()
render()
No public properties found
No constants found
renderTemplate()
$template
$data
$output
N/A
No private methods found
No private properties found
N/A

Properties

$template

$template : string

View template

Type

string

$data

$data : array

View data

Type

array

$output

$output : string

View output string

Type

string

Methods

getTemplate()

getTemplate() : string

Get view template

Returns

string

render()

render(array  $data) : string

Render the view and return the output

Parameters

array $data

Throws

\Pop\View\Template\Exception

Returns

string

renderTemplate()

renderTemplate() : void

Render view template file