Instruments belong to Groups and Groups belong to Sectors. In the index.ctp of InstrumentsController I'd like to display not only the Group, but Group's Sector also. However, the $instruments array contains only sector_id which I can access like this: $instrument['Group']['sector_id'] I can access Sector name like this: $instrument['Group']['Sector']['name'] only when $this->Instrument- >recursive = 2; Is there another way to get the Sector's name? Setting "recursive" to "2" adds a lot of redundant data to the $instruments array :(
Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
