You probably want to associate Portfolio with Section. Maybe P hasMany S / S belongsTo P, unless a Section can belong to more than one Portfolio, in which case they'd be HABTM each other.
Once you have the associations correctly set up you could use Containable to fetch the data. On Wed, Jul 1, 2009 at 10:07 PM, Deuce<[email protected]> wrote: > > I might have the terminology incorrect, but here is what I have. > > Sections - This has a list of Sections. > Images - This is an image uploader that is associated with Sections. > > These two parts work fine. > > What I am trying to get it to do is on my Portfolio view, i would like > for all of the Sections to populate and all of the Images to populate > within their associated Sections. > > I'm not sure what code you would need to see. This is my first CakePHP > application and so far everything went fine until I got to this point. > > Thanks for any help! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
