Yii 2 id relayed user used in the game



  • I want to write a simple pg.

    I use yii 2 user, which produces 7 tables on the move.

    And that's all in the module.

    I want to throw a game in the modules/game.

    I think we could have two bases under the game and under the lake, but then the outer keys won't work.

    Is it possible to leave a connection between the modules or just create a model of my_user in the module and, at the first registration, create a record of his id and name?

    How is that right?



  • By redefining the method getDb facility ActiveRecord a component that will be used to connect with the bd may be selected. Accordingly, you'll be fine.

    I advise you to use one bud and either inherit from the component and expand it, or to refuse and make implementation solely within your needs.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2