On Jun 22, 12:40 pm, Vincent <[EMAIL PROTECTED]> wrote:
> Hello -
>
> Did you ever get some answers on that. I have the same problem. I have
> 2 forms on my page and I am not sure how to manage them!
   <snip>

   Not tested, but look for the 'model' option in $form->create().

Something like this might work:
1. controller/action:
   $this->Model1->save($this->data);
   $this->Model2->save($this->data);

2. action.ctp:
  $form->create(array('model'=>'Model1')) //it should create form
inputs with ['Model1'] key
    blah....
  $form->end()

  $form->create(array('model'=>'Model2'))
    blah....
  $form->end()


--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/


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