saving in a loop

June 22, 2006 at 2:16 pm Leave a comment

Just found this on google groups

Question: How to save (Model->save()) in a loop without overwriting the first one:

Workaround:

After calling $this->Model->save( ), call $this->Model->create( ).
This will re-initialize the model for writing new data.

Advertisements

Entry filed under: baking tips, cakephp.

always use html->link new installation of cake: open_basedir restriction error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

June 2006
M T W T F S S
    Jul »
 1234
567891011
12131415161718
19202122232425
2627282930  

%d bloggers like this: