CodeIgniter Forums

Full Version: Ion auth and changing the tables acccording to my needs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]mady[/eluser]
Hi friends,

I have a 2 different user types :

one type using the tables:

gold_auth
gold_user

and another one with:

silver_auth
silver_user

I assume that changes in config table like the following can do a trick for me.

How to handle the user type: can i do some thing like this:


if(gold)
{
config(gold_auth.php);
}
else
{
config(silver_auth.php);
}





Thanks,


El Forum

[eluser]Glazz[/eluser]
The tables are the same ? Same columns ?

El Forum

[eluser]Zaher Ghaibeh[/eluser]
why not to use the groups ?
since your users types are only a group ?

El Forum

[eluser]mady[/eluser]
no my table columns are very different one

El Forum

[eluser]InsiteFX[/eluser]
Kind of repeating yourself right!

Would have made more sense to have used groups with one user table and then setup another table for gold or silver.

El Forum

[eluser]mady[/eluser]
Hi Fx,

Actually my table structure may look awkward, bcas its my senior who designed. He has his own ideas.

But i am in a position to use the ion-auth, so pls dont bother that.

Thanks,

El Forum

[eluser]mady[/eluser]
Anyone has idea regarding ion auth