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
-~----------~----~----~----~------~----~------~--~---