The upload method is empty right now. I can't even figure out how to access the piece's associated image(s). I can get the image data, but when I try to call upload() I get an error about calling a method on a non-object, so I'm not getting the actual image object, only its data. I feel like I'm misunderstanding how this basically works here, I thought accessing the actual object was the point of using associations.
I don't want multiple controllers to use the method.. it will only be called when a piece (and associated image) is uploaded (ie, when pieces/add is called). If the images controller has to do it, fine.. but how do I do that from a single form in the pieces/add view? Should I even have an images controller?? There are no image views.. Again I feel like I'm really misunderstanding how this works.. the documentation is great for the basics (ie, saving & accessing data), but I couldn't find much on how the associated controllers work together (or don't..) Thanks On May 17, 12:10 am, Miles J <[email protected]> wrote: > Can we see your upload method? > > If you want multiple controllers to use the method, place the method > in the appcontroller or make a component. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
