saving in a loop
June 22, 2006
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.
Entry Filed under: baking tips, cakephp. .
Trackback this post | Subscribe to the comments via RSS Feed