Trait StringTemplateTrait
Adds string template functionality to any class by providing methods to load and parse string templates.
Direct Known Users
Cake\View\Helper\FormHelper, Cake\View\Helper\HtmlHelper, Cake\View\Helper\PaginatorHelper, Cake\View\Helper\TimeHelperMethod Detail
formatTemplatesource public
formatTemplate( string $name , array $data )
Format a template string with $data
Parameters
- string
$name
- The template name.
- array
$data
- The data to insert.
Returns
string
string
templatersource public
templater( )
templater
Returns
Cake\View\StringTemplate
\Cake\View\StringTemplate
templatessource public
templates( string|null|array $templates null )
Get/set templates to use.
Parameters
- string|null|array
$templates
optional null - null or string allow reading templates. An array allows templates to be added.
Returns
mixed
$this|string|array
Properties summary
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/3.1/class-Cake.View.StringTemplateTrait.html