I am using a model for associations as outlined in:
http://www.thinkingphp.org/2006/10/26/modeling-relationships-in-cakephp-faking-rails-throughassociation/
Basically, I want to allow a user to have a "confirmed" status in a
group.
Now, when an admin visits the group controller (in an action, of say,
"view", I want them to show a table of all the confirmed users, and the
unconfirmed users of a group (as well as the group information).
However, I only have access to their IDs, that is, when I run
debug($data['Group']; I get the group information, and:
[Membership] => Array
(
[0] => Array
(
[id] => 1
[group_id] => 17
[member_id] => 15
[confirmed] => 1
)
[1] => Array
(
[id] => 2
[group_id] => 17
[member_id] => 18
[confirmed] => 1
)
)
Now, I can show the ID's of the member, but I do not have access to
their name, location, etc. which I also want to display to the user in
this controller action.
How do I access such data in the view? Or should I be doing something
extra in the controller?
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---