kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Bootstrap crashes, I see there are 2 Bootstraps running on the network console #1026

Closed Cloud-Dark closed 2 years ago

Cloud-Dark commented 2 years ago

Bootstrap crashes, I see there are 2 Bootstraps running on the network console, when I deactivate one of them runs smoothly, when I activate it looks messy image image and the error only runs on pages that use the kartik library only, other pages run smoothly

Cloud-Dark commented 2 years ago

image i am using php version 8.0

kartik-v commented 2 years ago

You need to check your code and environment to remove the conflicting bootstrap loaded. Check class dependencies to code - to ensure that all your views, layouts, widgets etc. use only ONE CONSISTENT bootstrap version.

For example to use and standardize Bootstrap 5.x --- Note that for all Krajee Widgets/Extensions - you can set the bsVersion property to 5 in config/params.php.

[
    'bsVersion' => 5
]
anam4nn commented 2 months ago

'assetManager' => [ 'bundles' => [ 'yii\bootstrap\BootstrapAsset' => [ 'js' => ['vendor/js/bootstrap.js'], ], ], ],