PHP Class lithium\template\view\adapter\Simple

Inheritance: extends lithium\template\view\Renderer
Exibir arquivo Open project: unionofrad/lithium

Public Methods

Method Description
render ( string $template, array $data = [], array $options = [] ) : string Renders content from a template file provided by template().
template ( string $type, array $options ) : string Returns a template string

Protected Methods

Method Description
_toString ( array $data ) : array Renders $data into an easier to understand, or flat, array.

Method Details

_toString() protected method

Renders $data into an easier to understand, or flat, array.
protected _toString ( array $data ) : array
$data array Data to traverse.
return array

render() public method

Renders content from a template file provided by template().
public render ( string $template, array $data = [], array $options = [] ) : string
$template string
$data array
$options array
return string

template() public method

Returns a template string
public template ( string $type, array $options ) : string
$type string
$options array
return string