I'm creating a tournament-platform with CakePHP. Currently I've created the following tables, models and controller which work perfectly: Tournaments, Users, and Teams.
I've created a "Tournamentuser" table, controller & model as well, where the tournament_id, user_id and team_id is stored.
Then when using View.ctp under Tournaments, it should display the User.Username & Team.Username in relation to the Tournamentuser. As of now, I have only managed to retrieve the id's from the table via. a foreach(.. as ..). I can see in the CakePHP query that it retrieves the data, I just don't know how to print it.
, ,
- It's the ['User']['username'] that is now working. – 2mas Sep 07 '12 at 20:26