Im using the HMVC extension with CodeIgniter and i got 2 modules
modules/frontpage
-- controllers
frontpage.php ( <- this controller needs to load the person model)
-- models
-- views
modules/person
-- controllers
-- models
person_model.php ( defines Person_Model extends Model )
-- views
using $this->load->model('person_model')
inside frontpage controller seems to load only global or models contained in the same module (frontpage models).
Any CodeIgniter experts here?
Found it... it was a simple fix.
Just had to use: $this->load->model('person/person_model');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With