This ajaxLink I used Yii-1.0.11 and working fine.
<?php echo CHtml::ajaxLink(‘show’,array(‘update’,‘id’=>$model->id),array(‘success’=>"function(data) {
$.prompt(data, {
buttons: {Cancel: true } }) }")); ?>
Now I need to know how to write ajaxLink in Yii-1.1.
array(
'name'=>'Action',
'type'=>'raw',
'value'=> 'CHtml::ajaxLink("show"',array("update","id"=>$data->id),array("success"=>"function(data) {
$.prompt(data, {
buttons: {Cancel: true } }) }"))',
),
THis is now working. I don’t understand where is the problem.