disable default jQuery?

Hi!

I'm beginning to use yii with jQuery and I wanted to use jQuery UI so I used the following to include the javascript:

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.3.2.js"></script>

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-ui-1.7.1.custom.min.js"></script>

I was trying to use sortable and it kept saying sortable was not a function.

I checked and rechecked my code dozens of times to see what went wrong and almost pulled my hair out!

I then looked at the output html and found out that yii was outputting

<script type="text/javascript" src="/la/assets/7dbc1d2e/jquery.js"></script>

for me as the last line right before </head>.

So somehow that is overriding the jquery-ui extensions.

OK I Know I'm doing it all wrong … I should use Yii::app()->coreScript->registerCoreScript

or something … which I don't understand at all yet.

I'm just trying to quickly prototype some javascript code but now just to include jquery-ui properly I have to call some strange methods … whereas the most straightforward way doesn't work.

I couldn't find the way to do it in the 'definite guide' either.

In my view this behavior should require some kind of explicit code in the layout file … maybe yii::app()->outputCoreScriptIncludeTag() or something like that so that it is clear where that <script> tag is coming from.

Otherwise this needs better documentation.

And … could someone help me out with the original question?

Thanks!

You can insert your own js file inclusion after the <title> tag.

Hi,

for UI jQuery try this extension: http://www.yiiframew…/extension/jui/