To validate more than one model in a controller you do something like
the following:

// add the two models as member varables
var $uses = array('ModelOne', 'ModelTwo');


// in your action that requires the validation
$this->ModelOne->set($this->data);
$this->ModelTwo->set($this->data);
if ($this->ModelOne->validates() && $this->ModelTwo->validates()) {
  // success
}

Geoff

On Sep 25, 8:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Sep 24, 10:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > is there a way to validate to models in a single view?
>
> What exactly are you asking for john?


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