Hey. I just want to save data from select multiply, it's a select:
<?php
echo $form->select('Files.name',$files,null, array
('multiple'=>true,'label'=>'Files:','class'=>'text ui-widget-content
ui-corner-all','style'=>'width: 700px'));
?>
Here data i send to controller:
Array ( [name] => Array ( [0] => cos1.pdf [1] => cos.pdf ) )
if i want to save this data using $this->Model->save($this->data) it
won't work. Because I must to change index number in keys to "name".
Anyone know how to do that?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---