I have a controller, and I want to fetch information from tables. With scaffold, it works wonderfully.. However I wanna load the information smartly for my app.
These are my tables: section: id name field1 field2 layout_id category_id category: id name field3 field4 field5 field6 layout: id name field7 field8 I want to put the information from the section table in the view. the category_id and layout_id should have category.name and layout.name instead of the id of the category. I could build a MySQL query for this, but I wonder what's the CakePHP way. (The more ways, the marrier it is ;)) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---