views:

17

answers:

1

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?

+1  A: 

Found it... it was a simple fix.

Just had to use: $this->load->model('person/person_model');

PHP_Jedi