How to use your own jQuery library in YII?
We can use the following line to load Yii jQuery, but it's not always latest version of jQuery. Sometime we need to customize it.Yii::app()->clientScript->registerCoreScript('jquery');
So add the following to config/main.php 'components' part.
'clientScript'=>array( 'packages'=>array( 'jquery'=>array( 'baseUrl'=>'/js/', // we can also use URL here. 'js'=>array('jquery-1.8.0.min.js'), 'coreScriptPosition'=>CClientScript::POS_HEAD ), ),),
Done.