add asset-packagist in composer.json, so you can use bower/npm packages
"repositories": {
"asset-packagist": {
"type": "composer",
"url": "https://asset-packagist.org"
}
}
composer require zacksleo/yii2-metronic
- For Layouts
use zacksleo\yii2\metronic\bundles\layouts\LayoutAsset;
LayoutAsset::register($this);
- For Plugins
use zacksleo\yii2\metronic\bundles\plugins\AnimateAsset;
AnimateAsset::register($this);
- For Pages
use zacksleo\yii2\metronic\bundles\pages\AboutAsset;
AboutAsset::register($this);