I believe you can just do: var $uses = array( 'Model1' ,'Model2' );
or use App::Import, then instantiate the model you want. You might also have to make sure that in the Model you specify var $useTable = null if it's not associated with with a table. Regards, Alfredo On Sun, Feb 22, 2009 at 4:30 PM, Sunchaser <[email protected]> wrote: > > I need to do a website that controls n games. > > Let's suppose i create a model called GAME, and then add the method > "register" to it. > > If i have n games that requires different views and different > validations, and a different approach for registration. > > So i would like to create models that extends the GAME model. How can > I do it in cakephp? > > I should do: > > 1) class Game extends AppModel > > 2) class XYZ extends Game > > and then in the controller? i can do: > > $game = new XYZ(); > $game->register( $data ) > > ??? > > Thanks > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
