\Pop\Form\TemplateFile

Form file template class

Summary

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

Properties

$template

$template : string

Form template

Type

string

$output

$output : string

Form output string

Type

string

Methods

getTemplate()

getTemplate() : string

Get form template

Returns

string

setTemplate()

setTemplate(string  $template) : \Pop\Form\Template\File

Set view template

Parameters

string $template

Throws

\Pop\Form\Template\Exception

Returns

\Pop\Form\Template\File

render()

render(\Pop\Form\Form  $form) : string

Render the view and return the output

Parameters

\Pop\Form\Form $form

Returns

string

__construct()

__construct(string  $template) : \Pop\Form\Template\File

Constructor

Instantiate the view file template object

Parameters

string $template

Returns

\Pop\Form\Template\File

renderTemplate()

renderTemplate() : void

Render view template file