* @since 2.0 */ class AppAsset extends \common\components\MyAssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = []; public $js = []; public $depends = []; public function __construct() { parent::__construct() ; $dirJquery = 'js/jquery-ui-1.12.1.custom'; $dirSelect2 = 'js/select2-4.0.13'; // css $this->addAsset('css','bootstrap/css/bootstrap.min.css') ; $this->addAsset('css',$dirJquery.'/jquery-ui.min.css'); $this->addAsset('css',$dirJquery.'/jquery-ui.theme.min.css') ; $this->addAsset('css',$dirSelect2.'/css/select2.min.css') ; $this->addAsset('css','css/site.css') ; $this->addAsset('css','css/screen.css') ; // js $this->addAsset('js','bootstrap/js/bootstrap.min.js') ; $this->addAsset('js',$dirJquery.'/jquery-ui.min.js') ; $this->addAsset('js',$dirSelect2.'/js/select2.min.js') ; $this->addAsset('js','js/backend.js') ; } }