Currently, to validate your User Model you may be doing.
$this->User->data = $this->data;
if ($this->User->validates())
{
}
All you have to do is add the Photo Model.
$uses = array('User','Photo');
$this->User->data = $this->data;
$this->Photo->data = $this->data;
if($this->User->validates()
Hiya,
Could anyone point me in the right direction for a way to validate a
single form based on the rules set in different models?
Basically, my form registers a user (User model) and uploads a photo
(Photo) model. It's rendered and saved in the users_controller.php so
all fields defined in the