Respond.js Asset Bundle for Yii2
Installation
The preferred way to install this extension is through composer., (*1)
Add to the require section of your composer.json file:, (*2)
"mimicreative/yii2-respond": "~1.0"
And run in terminal, (*3)
composer update
Usage
Use as the asset bundle in Yii2 View files., (*4)
// write this in your view file or layout
\mimicreative\assets\RespondAsset::register($this);
Or maybe you prefer to include it in your asset dependency., (*5)
public $depends = [
// ...
'mimicreative\assets\RespondAsset',
// ...
];
By default, this will install respond js file at the head., (*6)