Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 371 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 371 Bytes

JSConfig

Usage:

// Send an array of things to the frontend using JSConfig
JSConfig::add('name_of_json_key', MyObject::get()->toArray());
// Retrieve the inserted data, and use an imaginary template renderer to output some HTML based on that data set.
templateRenderer
    .setTemplate('MyObjectList')
    .process(JSCONFIG['name_of_json_key']);