How to make the model look at my users table

edited May 2012 in Modules
I am trying to create my own module.

I am going to use tank_auth for my front end users.

So I created tables called: users, groups and user_groups

I want to create a module to add teachers as users with group teacher.

I have a teachers_model and the function:

function __construct()
{
parent::__construct('users');
}

The problem is, the model goes to the fuel_users table instead of my users table.

Is there a way to fix that without changing my users table's name?

Comments

  • edited 6:55PM
    Ok, found the solution, yey, I am starting to get it :)

    The solution: parent::__construct('users', array('table_name' => 'users'));
Sign In or Register to comment.