changing the table name with a variable |
Code: class UserModel extends Model Hello, I want to change the table name with a variable, for example the id + _table name of the users coming from the session, how can I do this, thank you.
maybe in principle ..along the lines .no clue if its going to work
Code: class UserModel extends Model controller Code: $handle = new UserModel();
The base model has a function setTable, we use that to set the table to a different one.
It's in the Model not the BaseModel.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |