Yii2 FastClick Asset
FastClick Asset Bundle for Yii2, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist codezeen/yii2-fastclick "*"
or add, (*4)
"codezeen/yii2-fastclick": "*"
to the require section of your composer.json file., (*5)
Usage
Once the extension is installed, use the following code in view to register asset :, (*6)
<?= \codezeen\yii2\fastclick\FastClickAsset::register($this); ?>
Or used as dependencies in asset bundle, (*7)
class AppAsset extends AssetBundle
{
public $depends = [
// ...
'codezeen\yii2\fastclick\FastClickAsset',
// ...
];
}
Please, check https://github.com/ftlabs/fastclick for more information about fastclick.js., (*8)