Thanks Hellbot, I've just switched to 1.2 and hadn't discovered the
create() function yet. It's much cleaner than the way I was doing it.

Cheers,
Darren.

On May 23, 8:17 pm, Hellbot <[EMAIL PROTECTED]> wrote:
> Depends on version cakePHP
> for 1.1.x in ModelController:
>
> $this->ModelName->id = null;
> $this->ModelName->save(array('fieldName' => $fieldValue));
>
> for 1.2.x in ModelController:
>
> $this->ModelName->create(array('fieldName' => $fieldValue));
> $this->ModelName->save();
>
> 2007/5/23,Dazweeja<[EMAIL PROTECTED]>:
>
> > What is the correct Cake way of doing this, ie. Saving data from
> > external sources into a db in Cake?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to