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?



  • edited 12:08PM
    Perhaps try using a different module key like "old_users". There are additional parameters you can set to customize the name, URI path, etc:
  • edited 12:08PM
    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()
  • edited 12:08PM
    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 12:08PM
    Thanks a bunch.
Sign In or Register to comment.