CButtonColumn to another controller

I have copy a CGridView from A Controller into another controller (B Controller). So far I can display and filter the CGridView without any problem. But when I click the CButtonColumn it redirect to B-controller. Is there any way to make it redirect to A-Controller.

can u post your codes?

Check this.

You can set all url of the standard button (update, view and delete) as you wish.




        array(

            'class'=>'CButtonColumn',

            'updateButtonUrl'=>'CHtml::normalizeUrl(array("controllerA/update","id"=$data->id))',

        ),



Okay… I’ll check there… many thanks Zaccaria :)