Did you try to search in group posts - there is a lot of info about
this.

Just a few words: in your controller function you should write "$this-
>use('model_1', 'model_2', ..... 'model_n')" and something like:
if($this->model_1->model_2->.......->model_n->save($this->data)){
            //maybe last_insert_id
            if($this->model_1->model_2->.......->model_n-1->save($this-
>data)){
              .............
                           if($this->model_1->save($this->data)){
                                      $this->flash('OK');
                            }
              }
}

You must have assigned associations in your models for  this models.

On Nov 8, 10:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I'm updating two models with one form, but I need to validate for each
> model. What's the best way to accomplish this?


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