Welcome Guest, Not a member yet? Register   Sign In
How to autoload models when using HMVC
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB