Plugin Js Loaded Before Jquery

Hi All,

I am trying to use a plugin to print the view file and when i use it, I always keep on getting Jquery Not Loaded error. The plugin also loads the Jquery file using ‘Yii::app()->clientScript->registerCoreScript(‘jquery’)’.

I have a previous Jquery minimized file loaded in the layout/main.php.

I dont understand why am I getting the error…

When i view the source using Chrome, I can see that plugin.js is loaded before the actual Jquery file and guessing that is the problem.




<link rel="stylesheet" type="text/css" href="/1300/assets/7e76965a/mprint.css" media="print" />

<script type="text/javascript" src="/1300/assets/7e76965a/mPrint.js"></script>

....

....

....

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>



Please do let me know what the problem is.

just take out this line you can only have one jquery loaded

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>