yuncms / yuncms-collection
This package is abandoned and no longer maintained.
No replacement package was suggested.
The collection module for yuncms.
Package info
github.com/yuncms/yuncms-collection
Type:yii2-extension
pkg:composer/yuncms/yuncms-collection
2.0.2.2
2018-03-22 05:34 UTC
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.