Property | Type | Description | |
---|---|---|---|
$_layoutFile | string | Layout file relative to the templates path. | |
$_vars | array | JavaScript variables registry. |
Method | Description | |
---|---|---|
appendVar ( string $name, mixed $value ) : |
Push variable $name to JavaScript. | |
render ( string $template, array $data = null ) : string | Renders template and injects it to the layout file. |
Method | Description | |
---|---|---|
_getVarsForOutput ( ) : string | Returns aggregated variables to send to JavaScript, with values encoded in JSON. |
protected _getVarsForOutput ( ) : string | ||
return | string |
protected string $_layoutFile | ||
return | string |