Loading…

How to use asset Bundles in Yii?

namespace appassets;

use yiiwebAssetBundle;

class DemoAsset extends AssetBundle {

public $basePath = ‘@webroot’;

public $baseUrl = ‘@web’;

public $js = [‘js/demo.js’];

}

Suggest An Answer

No suggestions avaliable!

Latest post from YII Interview Questions

Ask Question