I have a subpage controller that has many categories and the categories have many files. I want to be able to add a new input for a file using javascript so the user creating the page can add as many files a they need on the fly.
The category is generate on this page as well. So a user creates a category by clicking on a link which inserts a new text input field where the user names the category. Then they can add files to that category, same procedure as above but they belong to the category. On submit I need to capture the categories, loop through them saving each one and grabbing the last inserted id and then looping through the files that are associated with those categories uploading and saving the record to the database. What's the best way to do this using cakephp conventions? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
