i have found the way to build an array of checkboxes.
but when i update this at the controller class
the checkbox in false are not visible. so i must clear all the entries
first
and replace this with the new array.
data['Blogs_tags']['checkID']))
{
$ID = $this->data['Blog
For the moment its run OK - I will find a better solution.
My controller received a array with data[Blogs_tags][checkID] and
parse it to associate with my Blogs_id at each row.
maybe its not so clear i post the code:
$str = '';
$i = 0;
foreach($tags as $name):
$i++
How do you build an array of checkboxes?
--~--~-~--~~~---~--~~
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
Hi Dan,
You might want to use the html helper. I believe that you should be
using id="data..." as opposed to name="data..." but the helper will
take care of that. I'm assuming that the relationship is a has_many.
In which case you should check out the models chapter of the cake
manual. See the
i want to post a array with multiples IDs, at an relationchip table.
All this id are generated by a list of checkboxes.
design
architecture
videos
and my save function =
$t = new customs;
$t->save($this->data['customs']);
do you have any idea ?
---
Dan
--~--~-~--~~