Reputation: 463
I've got 2 models with the same name, but in different folders.
models
|
- model1
|
- db_model.php
|
- model2
|
- db_model.php
When I load them like this it causes a problem:
$this->load->model('model1/db_model', 'db_model1');
$this->load->model('model2/db_model', 'db_model2');
Upvotes: 0
Views: 103
Reputation: 3675
The 'db_model' is an alias, so you are naming them both the same thing.
Are you doing that for a reason? Explain what you want and we'll help with a workaround
Upvotes: 1