Yii2框架继承bootstrap4方法
1.安装yiisoft/yii2-bootstrap4
composer require yiisoft/yii2-bootstrap4
注意此时安装到vendor/npm-asset/目录下
2.替换框架引用的yiisoft/yii2-bootstrap
//资源设置
'assetManager'=>[
'bundles'=>[
//替换成bootstrap4
'yii\bootstrap\BootstrapAsset'=>[
'sourcePath' => '@npm/bootstrap/dist',
'css'=>['css/bootstrap.min.css'],
'js'=>['js/bootstrap.bundle.min.js'],
],
],
],