Include Jquery

Hi all

How can I Include Jquery in Yii framework and where i can include?

You can include wherever you want, with:


@ zaccaria

thanks man…lol

Should this code be included in view script or somewhere else?

where can i add Yii::app()->clientScript->registerCoreScript(‘jquery’); ?

in view?

can i add css ?


You can add Yii::app()->clientScript->registerCoreScript(‘jquery’); wherever you want, but better in the controller or on the view (or in a widget, if require jquery).

for add a css use Yii::app()->clientScript->registerCssFile(‘fileName’);

cool! Thanks Zaccaria!

hello…hi there…

still not understand about jquery in yii…

just want to put imagemapster into yii…

the example is here",so you can easily explain to me back…

really need your help…stuck here…and sorry for my bad english