Re: Validate one form, multiple models, 1.2

2007-07-11 Thread Ketan Patel
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()

Validate one form, multiple models, 1.2

2007-07-11 Thread wilson
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