Bootstrap 3.2 connected with yiiFramework.
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
Some of pages doesn’t work jquery dropdown
if you are talking about form and gridview then by default it auto include jquery.js , so it’s not working.
i am talking about dropdownmenu. 5790
why it work some pages, but some pages it doesn’t work.
May Be i think some Jquery included on that page,so I think it’s come to conflict issue.
please trace your code and find the issue.
I am working with a bootstrap template and it got messy along the way.
Yes, you are bound to face several conflicts.
You will need to trace and edit your codes accordingly.
if i open some pages, it showed this error in console
(anonymous function) bootstrap.min.js:6
That particular error is telling you that the jQuery library should be included before bootstrap. You have them the other way round.
Instead of that, you should be registering the jQuery script, or you’re going to have conflicts when the Yii components try to include it.
Put a line like this at the top of your main layout file after your DOCTYPE declaration:
<?php Yii::app()->clientScript->registerCoreScript('jQuery'); ?>
and remove the jQuery import from your original post.