Your best friend will soon become the debug() function. I use it all
the time to find out how my data has been generated by cake.
hasMany relationships are generated so that each "Country" also has an
array of "User" containing its associated users. You don't have to make
any special requests for that data.
for example:
foreach ($data as $oneCountry)
{
// print your Countryname
foreach ($oneCountry['User'] as $oneUser)
{
// print your username
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---