try
$this->Modelname->create();
$this->Modelname->save($product);
assuming $product has the right "cakey" structure: array('Model' =>
array('field1' => 'val1', 'field2' => 'value2'))regards, f. On 28 Jan., 20:34, dandreta <[EMAIL PROTECTED]> wrote: > I have a function that receives an array of data($product). > How can I create a new record in the database with the information > received without using a form? > Thanks and regards --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
