JsConfigs
extends AbstractHelper
in package
JsConfigs helper for passing configs to Javascript
Tags
Table of Contents
- $config : array<string|int, mixed>
- Config
- add() : void
- Add config.
- getJSON() : string
- Generate JSON from the internal array.
Properties
$config
Config
protected
array<string|int, mixed>
$config
= []
Methods
add()
Add config.
public
add(string $key, mixed $value) : void
Parameters
- $key : string
-
Config key
- $value : mixed
-
Config value
Return values
void —getJSON()
Generate JSON from the internal array.
public
getJSON() : string