Override Bootstrap CSS/JS of an ActiveForm Yii2

296 Views Asked by At

In yii2 I have a view which use yii\bootstrap4\ActiveForm to send data to my model.

After form submission the data is correctly uploaded, but a script named

<script src="/assets/421ef7ac/js/bootstrap.bundle.js"></script> is added to my page.

This script somewhat interfers with my current bootstrap, and the page behavior is now broken.

In main.php I have set assetManager with this configuration, but this broke the behavior of all my views.

   'assetManager' => [
        'linkAssets' => true,

        'bundles' => [
            'yii\bootstrap4\BootstrapAsset' => false,

        ]
    ],

Thanks for your help.

0

There are 0 best solutions below