\ManaPHP\HtmlRendererInterface

Summary

Methods
Constants
lock()
unlock()
render()
renderFile()
partial()
exists()
getSection()
startSection()
stopSection()
appendSection()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

lock()

lock() : void

unlock()

unlock() : void

render()

render(string  $template, array  $vars = array(), boolean  $directOutput = false) : string

Checks whether view exists on registered extensions and render it

Parameters

string $template
array $vars
boolean $directOutput

Returns

string

renderFile()

renderFile(string  $file, array  $vars = array()) : string

Parameters

string $file
array $vars

Returns

string

partial()

partial(string  $path, array  $vars = array()) : void

Parameters

string $path
array $vars

exists()

exists(string  $template) : boolean

Parameters

string $template

Returns

boolean

getSection()

getSection(string  $section, string  $default = '') : string

Get the string contents of a section.

Parameters

string $section
string $default

Returns

string

startSection()

startSection(string  $section, string  $default = null) : void

Start injecting content into a section.

Parameters

string $section
string $default

stopSection()

stopSection(boolean  $overwrite = false) : void

Stop injecting content into a section.

Parameters

boolean $overwrite

appendSection()

appendSection() : void