Using Cakephp 2 i am trying to select one or many records clicking into a checkbox, from a list named my_id[] :
<input type="checkbox" name="my_id[]" value="<?php echo $Myobj['My']['id']; ?>
I have a link to the controller processBatch method but did not know how to pass the array of selected data using the checkbox into the view file.
<?= $this->Html->link('Batch process','proccessBatch')?>
I am trying :
public function proccessBatch( ) //array of $ids
{
pr($this->request);
But did not see $this-request->data. How can i get the checkbox selected values ?