Probably a really simple thing that I'm just missing:
User hasMany Registration
Registration belongsTo Event
Now I want to display all the events that a user has registered for
which is pretty simple:
$this->User->find("User.id=$id", null, null, 2)
So in the view I can iterate over the user's registrations and output
stuff like $registration['Event']['Title'] and $registration['Event']
['Date']
But how do I order those registrations by the date of the event?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---