Yes, you can save many of the same type of records. Take a look in the 
CakePHP book at:
http://book.cakephp.org/2.0/en/models/saving-your-data.html

in the section named:
Model::saveMany

But first I would recommend that you get an understanding of CakePHP, so 
that you can answer this kind of questions yourself :)
Enjoy, John

On Tuesday, 24 June 2014 20:58:28 UTC+3, Christopher Wilson wrote:
>
> I don't quite know what this is called, so I'm having trouble finding a 
> working example. This is what I want:
>
>    1. A select/pulldown menu that pulls data from the database.
>    2. An "add" button that creates a new menu that is a clone of the 
>    original
>    3. For this to write to the database. So if I have the 3 selects, I 
>    get 3 new rows in the table.
>
> Here is what I have:
>
>    1. A select/pulldown menu that pulls data from the database.
>    2. An "add" button that creates a new menu that is a clone of the 
>    original
>    3. JS script that will change the name so that it will create nested 
>    arrays of the selections.
>    4. The ability to write one pulldown, but only one.
>    5. Cake 2.something.
>
> Is what I want possible with Cake? I know it is possible with straight 
> PHP, I've done it before. However, I can't get cake to write multiple 
> values to the database. I have no idea where to even begin with this. 
> There's nothing in the book, and I can't find someone who has done 
> something similar.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to