I've been struggling trying to find an elegant way to add sections and categories to listings. After trying all sorts of things I'm back to square one, if someone could point me in the right direction that'd be terrific.
My models are set up like this: sections hasMany categories, categories belongsTo sections, and listings HABTM categories/sections. The application is basically a directory with listings and those listings are first separated into sections and then into categories. When users are selecting a section it is important that only the categories that belongTo the section appear along with it. Also, the user needs to be able to apply more than one section and as the user adds more sections the proper categories appear with them. I've tried using jQuery cascading form fields (http:// dev.chayachronicles.com/jquery/cascade/index.html) but it accepts JSON data and it seems like converting a PHP array to JSON data back to a PHP array is a bit of a messy circle...there must be a better way. And if that actually is the best way then I'm still not sure how to save the data after it's been converted. I also admit that I might not be understanding something fundamental as this is certainly a learning experience for me. Any help is really appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
