On Mar 7, 12:32 am, "Grant Cox" <[EMAIL PROTECTED]> wrote:
> If you want to do it in a single action, then keep as much of your
> Screenshot processing / validation in your Screenshot model, and have
> the extra bits in the Entries/add action.
I was working towards that until I realized that I wasn't sure where
my data ends up after it gets submitted. Would it make sense to
prepare the file upload data in the Entries model and then pass that
to a method of Screenshots to handle the rest?
I'm not really sure what the proper way is to call a method in
Screenshots from Entry and passing it the data of the uploaded file.
Does it by any chance already have the data if I'd just call
Screenshot->add() due to the hasMany relation and the <?php echo $html-
>file('Screenshot/file')?> way of submitting?
I really should read more about debugging cakephp so I get a better
idea of what's going on. Anyway, thanks for pointing me in the right
direction Grant.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---