[yw0_c0_all] & [yw0_c0] ??

Hi,

I’m trying to multi-delete selected rows with the generated Ccheckbox on a CGridview with a simple <form></form>

when I print_r($_POST) i obtain :


Array ( [yt0] => Delete selected [yw0_c0_all] => 1 [yw0_c0] => Array ( [0] => 12 [1] => 13 ) ) 

The checkboxes are called yw0_c0 but how I can parse this in a YII way without doing


$data = $_POST['yw0_c0'];

Of course the code that follows is:




$model = Menu::model();

foreach ($ids as $id) {

$model->deleteByPk($id);

}