I'd like to accomplish the following:

I have a Mains table and a Files table
The Main table contains various information.
The Files table records info about one or more files connected to the
Main table (through a foreignkey field).

When I create a new Main record I need to fill in info about the file
(I need to upload a file and make some operation about it). For
example the file could be a gpx or kml file and I want to retrieve
info that are into that file, upload the file, save the path in Files
and save the gpx info in the main table.

I tried to put a link to the 'add' view of Files in the 'add' view of
Mains but after Saving the file record I don't know how to go back to
mains.add without losing data entered in the fields.

I want to know if there's a cake method to to this or if I have to
code everything from scratch.
Note that I don't want to save the main record before having saved the
file record.

Thank you
      maxx
--~--~---------~--~----~------------~-------~--~----~
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