PHP Class Bootstrap\View\BootstrapStringTemplate

Inheritance: extends Cake\View\StringTemplate
Show file Open project: holt59/cakephp3-bootstrap3-helpers

Public Methods

Method Description
format ( string $name, array $data ) : string Format a template string with $data

Protected Methods

Method Description
_compileTemplates ( array $templates = [] ) : void Compile templates into a more efficient printf() compatible format.

Method Details

_compileTemplates() protected method

Compile templates into a more efficient printf() compatible format.
protected _compileTemplates ( array $templates = [] ) : void
$templates array The template names to compile. If empty all templates will be compiled.
return void

format() public method

Format a template string with $data
public format ( string $name, array $data ) : string
$name string The template name.
$data array The data to insert.
return string