15/09
2016
Yii2 font awesome asset
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
composer require webvimark/yii2-fontawesome "*"
or add, (*3)
"webvimark/yii2-fontawesome": "^1"
to the require section of your composer.json
file., (*4)
Once the extension is installed, simply use it in your code by :, (*5)
webvimark\fontawesome\FontAwesomeAsset::register($this)
OR, (*6)
class AppAsset extends AssetBundle { public $depends = [ ... 'webvimark\fontawesome\FontAwesomeAsset', ]; }