yii and jquery.js

I just wonder what would be the best way to load jquery.js all over the project. On the demo blog I’ve seen that the contact page loads:


<script type="text/javascript" src="/assets/3d9484f9/jquery.js"></script>

<script type="text/javascript" src="/assets/3d9484f9/jquery.yiiactiveform.js"></script> 

probably the jquery.js load is forced by yiiactiveform. But when I move to the other pages, the jquery.js is no longer available and scripts, that require it, do not work.

Should I load jqiery.js manualy by


Yii::app()->clientScript->registerScriptFile('/js/jquery.js', CClientScript::POS_HEAD) 

or should I load it form the assets folder?

Will there be any conflicts on that contact page if jquery.js gets loaded twice from two different files?

Thanks!

For jquery and other core scripts (JS scripts that are included with Yii framework) use the registerCoreScript() - http://www.yiiframework.com/doc/api/1.1/CClientScript#registerCoreScript-detail