Delete multiple checked rows

Hi all,

I’m pretty new on yii, and I wondering how could I delete some rows checked in same time.

In my models’ view admin.php (manage), I add a column with check boxes and in other side I delete this with the Cbuttoncolumn. To keep the delete functionality, I simply add in menu an operation to be able to delete records like :


	array('label'=>'Create Voice Group', 'url'=>array('create')),

  array('label'=>'Update', 'url'=>array('update', 'id'=>'<img src='' class='bbc_emoticon' alt='???' />?')),

	array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>'<img src='' class='bbc_emoticon' alt='???' />?'),'confirm'=>'Are you sure you want to delete this item?')),


and my CgridView looks :

<?php $this->widget('zii.widgets.grid.CGridView', array(




  'selectableRows' => 2,



      'class' => 'CCheckBoxColumn',








I tried to replace the “? ? ? ?” by things like ‘$.fn.yiiGridView.getChecked(id)’ but doesn’t work. Fore sure if there are many id I have to change my controller as well to be able to manage multiple id in an array and delete them one by one. But the question is more, how to send an array fills with multiple records checked to the controller ?

I made many researches without find something working, or maybe I failed to do what I found…

Thanks by advance

I think,

this will help you