Two or more loaded controllers with the same name login models are not working.
E.g I have two models from same name one is login_model and other is in admin -> login_model.php then I want to load both in a single controller.
How can I do that?
You can do this like this:
$this->load->model("login_model","login_model");
$this->load->model("admin/login_model","admin_login_model");
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