yii2 Asset management

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • the depended assets will be loaded before this assets in given order
    • public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap\BootstrapAsset', 'yii\bootstrap\BootstrapPluginAsset', 'cinghie\fontawesome\FontAwesomeAsset', ];

Remarks

this example is based on the advanced template https://github.com/yiisoft/yii2-app-advanced

The cinghie asset in this example is the asset package for adminLTE https://github.com/cinghie/yii2-admin-lte



Got any yii2 Question?