Components are generally used to aid controller logic. I think you should investigate cake's containable behavior to solve the requirement of the model fetching its associated data.
cheers, -Ketan. http://www.propertyjungle.in http://www.innovatechnologies.in On Nov 10, 5:27 am, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > I read that you should use components to access models but I was just > wondering as I have a few tables and they all pertain to one idea. So > I was hoping to make either a component or master model so I could do > something like > $this->MasterModel->Model->find('all') or > $this->Componenet->Model->find('all') or something along those lines as it > would be more > > organized and I would only have to add one model for each category to > $uses. However I just don't feel like ORM would really work for this. > Any ideas or input on this would be awesome. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
