Creating non-framework calsses in CakePHP

Posted by Affian on Stack Overflow See other posts from Stack Overflow or by Affian
Published on 2010-05-20T22:23:20Z Indexed on 2010/05/20 22:40 UTC
Read the original article Hit count: 120

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?

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about php