yuncms/yuncms-collection

The collection module for yuncms.


Keywords
collection, yii2, yii2-module
License
MIT

Documentation

yuncms-collection

The collection module for yuncms.

Latest Stable Version Total Downloads Build Status License

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.