How to make the model look at my users table
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
The solution: parent::__construct('users', array('table_name' => 'users'));