betterbrief/silverstripe-jsconfig
Composer 安装命令:
composer require betterbrief/silverstripe-jsconfig
包简介
Create a clean JavaScript data interface between your frontend and your SilverStripe application.
关键字:
README 文档
README
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']);
统计信息
- 总下载量: 1.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-06-23