Update von jQuery auf 1.41

Hallo zusammen,

ist es eigentlich einfach so möglich auf das neue jQuery zu updaten? Oder gibt es da dann Probleme mit den anderen Komponenten von Yii?


You can manually update jquery for latest version and then update config

        'clientScript' => array(

            'scriptMap' => array(

                'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',

                'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',



or add to your layout:

            $cs = Yii::app()->clientScript;

            $cs->scriptMap = array(

                'jquery.js' => '/js/jquery/jquery-1.4.1.min.js',

                'jquery.yii.js' => '/js/jquery/jquery-1.4.1.min.js',



setting latest version of jQuery in main config file is not working for me.

I am getting the following error:


Property "CWebApplication.clientScript" is read only.

I am using Yii version 1.1.6.r2877

any idea why it is not using?

I’m developing my site using YII, i’m trying to upgrade jquery to version 1.4 or latest version. everything other will be work if i upgrade jquery?

Yeah, I think there is no problem. The only thing you change is the jQuery version and I don’t think that the version number is used in some other scripts – and if it would be like that then this script is *$~§ ;)

Here a nice post on stackoverflow.

‘clientScript’ config goes inside the ‘components’ array.

re-opening this post, i’ve updated -making a backup of original jquery file- jquery and many thing crashes so how’s the best method to update without die in the purpose?