Table called users clashing with Fuel_users table

edited July 2012 in News & Announcements
Hello -

I'm trying to integrate a pre-existing users table that is called users, but it's clashing with Fuel_users when I create a module, is there anything I can do to prevent this?

thanks.
matt

Comments

  • edited 10:43PM
    Perhaps try using a different module key like "old_users". There are additional parameters you can set to customize the name, URI path, etc:
    http://www.getfuelcms.com/user_guide/modules/simple
  • edited 10:43PM
    I've actually tried all that, I went as far as renaming the model, renaming the module to members, but the construct is where I think it throws it off.
    function __construct()
    {
    parent::__construct('users');
    }
  • edited 10:43PM
    What if you add this to your MY_config:
    $config['tables']['old_users'] = 'users';
    And then in your model use:
    function __construct() { parent::__construct('old_users'); }
  • edited 10:43PM
    bingo!
    Thanks a bunch.
Sign In or Register to comment.