I have a module in YII to generate contacts. I have generated checkboxes for each row of the contact list using widget in my admin page.
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'menu-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
array(
'id'=>'autoId',
'class'=>'CCheckBoxColumn',
'selectableRows' => '50',
),
'fname',
'lname',
'email',
'mobile'
'address',
array(
'class'=>'CButtonColumn',
),
),
)); ?>
I want to create a submit button on this page which saves all the mobile values of the checked rows into database. How do I handle this?