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" images, and an image "belongsTo" piece.  In the add
method of the pieces controller, I can access all of the needed data,
and can save it to the image.. but I can't seem to figure out how to
call the upload method of my images controller to actually move the
file (rather than just storing the filename, etc, in the database).

Any ideas?  Or am I going about this the wrong way to start out with?
There will be other images on the site that are not handled by the
images controller, because they are not connected to a particular
piece and are part of the view instead.  But it seems like an images
controller is necessary, and handling the file upload in the pieces
controller would seem to break the philosophy here a bit.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to