I have a search form with fields from multiple models.

In the controller processing the search, do I have to do:

$this->model_1->validate ($this->data);
$this->model_2->validate ($this->data);
$this->model_3->validate ($this->data);

ie. a different validate call for each model's data?

Or, can I just do:

$this->validateErrors ($this->data)

...and cake will know which models to validate each fields against?

Thx.


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