PHP Interface ManaPHP\RendererInterface

Datei anzeigen Open project: manaphp/manaphp

Public Methods

Method Description
appendSection ( ) : void
exists ( string $template ) : boolean
getSection ( string $section, string $default = '' ) : string Get the string contents of a section.
partial ( string $path, array $vars = [] ) : void
render ( string $template, array $vars = [], boolean $directOutput = false ) : string Checks whether view exists on registered extensions and render it
startSection ( string $section ) : void Start injecting content into a section.
stopSection ( boolean $overwrite = false ) : void Stop injecting content into a section.

Method Details

appendSection() public method

public appendSection ( ) : void
return void

exists() public method

public exists ( string $template ) : boolean
$template string
return boolean

getSection() public method

Get the string contents of a section.
public getSection ( string $section, string $default = '' ) : string
$section string
$default string
return string

partial() public method

public partial ( string $path, array $vars = [] ) : void
$path string
$vars array
return void

render() public method

Checks whether view exists on registered extensions and render it
public render ( string $template, array $vars = [], boolean $directOutput = false ) : string
$template string
$vars array
$directOutput boolean
return string

startSection() public method

Start injecting content into a section.
public startSection ( string $section ) : void
$section string
return void

stopSection() public method

Stop injecting content into a section.
public stopSection ( boolean $overwrite = false ) : void
$overwrite boolean
return void