Would like to see some code....

Basic principle is that each row gets an id ($data['Step'][0]['id'], 
$data['Step'][1]['id'], etc) and then you do a saveAll 
(http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array).

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 14 May 2012, at 18:13:58, Super Steve wrote:

> Hello,
> I have a table that stores procedure title and description and a table
> that stores steps to a procedure. Steps table would store a procedure
> foreign key.
> 
> In my view-single-procedure page, I have made a table where the user
> can create more rows to the table dynamically via javascript. (Because
> the number of steps a procedure can have is not set 100%)
> 
> I want to save the steps to the steps table, and I don't even have a
> clue on how to tackle this.
> Been googling for more than an hour trying to figure this one out.
> 
> Could anyone of you cakephp + php gurus help a n00b sauce out?
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to