yuncms/yuncms-collection

This package is abandoned and no longer maintained. No replacement package was suggested.

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

2.0.2.2 2018-03-22 05:34 UTC

This package is auto-updated.

Last update: 2022-07-09 17:20:40 UTC


README

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.