are you using autoload are loading in page ?
- JYoThI
Both will have same variable name login_model which means the one you called 2nd will be active.If you want to use both you need to use one of them as other variable.Look at doc how you can give another object name for a model
- Shaiful Islam
$this->load->model('admin/login_model' , 'myinterest');
The second parameter (optional) is used to call the method.
ex:
$this->myinterest->get_users();
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
login_modelwhich means the one you called 2nd will be active.If you want to use both you need to use one of them as other variable.Look at doc how you can give another object name for a model - Shaiful Islam