Define asset bundle for iconic font and CSS framework - Font Awesome
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist rokorolov/yii2-fontawesome-asset "*"
or add
"rokorolov/yii2-fontawesome-asset": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
// Register the bundle on a view
rokorolov\fontawesome\FontAwesomeAsset::register($this);
or as dependency in your main application asset bundle:
class AppAsset extends AssetBundle
{
public $depends = [
...
'rokorolov\fontawesome\FontAwesomeAsset'
];
}
Comments