I would like to use jQuery in my scripts, and i therefor use this in the head of my layout file:
<?php echo CGoogleApi::init(); ?>
<?php echo CHtml::script(
CGoogleApi::load('jquery','1.3.2') . "\n"
); ?>
The problem is that all functions like
<?php echo CHtml::linkButton('Delete', array(
'submit'=>array('comment/delete','id'=>$comment->id),
'confirm'=>"Are you sure to delete comment #{$comment->id}?",
)); ?>
stops working.
Firebug shows the error: jQuery.yii is undefined
When changing jQuery.yii to jQuery in the CHtml class, then submitFunction is undefined. I suppose i can keep on tracking down these errors, but isn’t there a better solution?