i'm personally interested in hearing if there is an official cake method for handling this properly
On 7/2/07, R13ckJ <[EMAIL PROTECTED]> wrote: > > > No need to answer this.. i'm using a behaviour to solve the problem. > Will post it on bakery when it's done. > > On Jul 2, 9:41 am, R13ckJ <[EMAIL PROTECTED]> wrote: > > If anyone could help me solve this it would really clear a few things > > up for me, including my headache! ;P > > > > This is what I'm trying to do... I have a form with five file inputs > > to upload five photos. My current way of thinking is when I submit the > > form cake should create five Photo models which I can then validate as > > a group. The problem is that if I validate them individually in a loop > > I loose the previous error messages. If there are errors I would like > > to display the form again with an error next to each file input/model > > that failed, and if they're valid I'd just like to carry on saving > > through a loop. > > > > Another idea was to give the model five photo input fields and > > validate through one model, but this seems counter-intuitive to me as > > each model should have only one photo file field. > > > > Again, I'd really appreciate any help getting my head round this > > problem :) > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
