![]() |
How to autoload models when using HMVC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to autoload models when using HMVC (/showthread.php?tid=32574) |
How to autoload models when using HMVC - El Forum - 07-27-2010 [eluser]prestondocks[/eluser] Hi, I am writing an application using HMVC to keep things modular. Two of my modules share some code between them. one is called locations_model.php the other files_model.php When I instantiate them I wanted to load the other model up at the same time. However since they are both loading each other up, it is putting the application in to a continues loop and crashing the server. I have tried to autoload the modules in autoload.php using locations/location_model but I get an error "Unable to locate the model you have specified: locations_model" Can anyone tell me how and if it is possible to load two models when using HMVC. Thanks Simon |