Prevent Yii auto include jquery script
sometime we have to stop Yii's auto js script load, the follow code is for cancel jQuery auto load in Yii 1.0 Framework, after that you can use your own jQuery anyway you want, becareful some Yii function linked to jQuery, you have too make sure load for it.
1. Open Config/main.php
2. add this code into 'components'
'clientScript'=>array( 'scriptMap'=>array( 'jquery.js'=>false, 'jquery.min.js'=>false, ) ),
and Yes, you can stop any Yii's core clientScript in this way.
Leave Comment