yuncms / yuncms-collection
The collection module for yuncms.
Installs: 1 830
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.6
- yiisoft/yii2-queue: ~2.0.0
- yuncms/yuncms-user: ~2.0
README
The collection module for yuncms.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require yuncms/yuncms-collection
or add
"yuncms/yuncms-collection": "~2.0.0"
to the require
section of your composer.json
file.
Use
/** * 发起收藏 * @param {string} model * @param {int} model_id * @param callback */ function collection(model, model_id, callback) { callback = callback || jQuery.noop; jQuery.post("/collection/collection/store", {model: model, model_id: model_id}, function (result) { return callback(result.status); }); }
License
This is released under the MIT License. See the bundled LICENSE for details.