In frontend\views\layout\main.php, add the following use statement at the top:
use frontend\assets\FontAwesomeAsset;

And then below that, near the other register call at the additional call to register, like so:
AppAsset::register($this);
FontAwesomeAsset::register($this);
And that should do it, we should now have access to font-awesome. So let’s test this by inserting
the following:
کد HTML:
<i class="fa fa-plug"></i>