kl83/yii2-slick-asset

v1.0.0 2017-08-26 11:17 UTC

This package is auto-updated.

Last update: 2024-11-09 14:27:05 UTC


README

Latest Stable Version Total Downloads License

Slick is the last carousel you'll ever need. Project home page http://kenwheeler.github.io/slick/.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require kl83/yii2-slick-asset ~1.0.0

or add

"kl83/yii2-slick-asset": "~1.0.0"

to the require section of your composer.json file.

Usage

Adding an asset as a dependence on another asset.

class SomeAsset extends \yii\web\AssetBundle
{
...
  public $depends = [
    'kl83\assets\SlickAsset',
  ];
...
}

Adding an asset within a view.

kl83\assets\SlickAsset::register($this);

License

MIT License