I'm making a tournament manager in CakePHP 1.3 and I have a tournament controller which is fine but I want to implement a interface that can be used to define how a tournament runs.
the controller needs to load a concrete class that implements the TournamentStyle
interface that defines how the tournament works. At the end of a round the TournamentStyle
is used to calculate the scores and winners and generate the next round of matches.
That gives me a .php file for the interface and other files for the various styles. My question is: where would I put these files and how would I load them into my tournament controller?