I found this conflict between the bootstrap scripts and the yii framework. When adding a template and scripts to yii:

<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script> 

a file appears in the DOM:

 <script src="/assets/25b4e139/gridview/jquery.yiigridview.js" type="text/javascript"> 

which only works after removing the bootstrap.min.js . Tell me, who knows how to deal with it?

    1 answer 1

    jquery.yiigridview.js is a script for running CGridView, published as a resource.

    Try to connect the bootstrap like this:

     Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/js/bootstrap.min.js", CClientScript::POS_HEAD); 
    • Thanks you. - Maxim147