Hi, I'm quite new to CakePhp.
I have this question: I have a simple "Post" model and I want to
delete Post by a list of checkboxes.
This is the code in class PostsController:

        function delete($id = null){

                if(!empty($this->data)){

                        print_r($this->data['Post']);


                }

        }


I know that I need to loop through the received array, so my View look
like this:

<td><?php echo $post['Post']['created']; ?></td>
<td>
<?php echo $html->checkbox('Post/id', '', array("value" =>
$post['Post']['id'])); ?>
</td>

But the ouput of the print_r() is: Array ( [id] => 2 )
I can't get access to all checkboxes values, but only one!

Thanks!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to