Hi,
suppose I have a 1:n relation where an item can have several images,
and each image will have a description and a filename and I have the
following view snippet:
...
<? foreach ($data['Image'] as $image) { ?>
<div>
  <?=$html->input('Image/description');?>
</div>
<? } ?>
...
 What I would like to do is to send all the image's captions from the
form as an array, but the problem is that the input textfields are
rendered with the 'data[Image][description]' name instead of
'data[Image][description][]' . Is there any way for achieving this?

(I already added the hasMany and belongsTo relations in the models)

thanks in advance


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
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