Re: Calling method in associated controller

2009-05-16 Thread matt
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'

Re: Calling method in associated controller

2009-05-16 Thread Miles J
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 t

Calling method in associated controller

2009-05-16 Thread matt
Hi all, I am still pretty new to CakePHP and I can't seem to figure this one out for the life of me. I am writing an admin site to manage a collection of art pieces which will be available on the front end of the site. I have a pieces controller, and an images controller. A piece "hasMany" imag