Referencing external javascript

Hi.

I’m trying to include an external jquery into my yii application.

This is how I initially did it in the my main page in the theme folder, but it doesnt find it.

<?php Yii::app()->clientScript->registerScriptFile("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); ?>

Can someone please give me light because i’m clearly doing something wrong

Please go through wiki (Serve jQuery and jQuery-UI from Google’s CDN). I think it will solve your problem.