Hey Foreach form create a new instance of corresponding model where data should be saved:
$foo = new MyModel(); foreach($posteddata){ $foo->create($myPostedData); if ($foo->validates()){ //great... } else { $errors = $foo->validationErrors; ] All your other questions are well documented btw :-) http://manual.cakephp.org/view/125/data-validation http://api.cakephp.org/class_model.html On 16 jun, 23:42, koala kid <[EMAIL PROTECTED]> wrote: > Hi, > > I am using one model to process and save the data for multiple forms. > How do I run cake's validation methods on each form separately. At the > moment you appear to define your rules in $validate outside of any > functions/methods. How do I run it from within a method. > > In addition as my model saves to multiple tables I am not using $this- > > >save(). How do I enforce validation without using this method? > > Thanks for any help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---