Welcome Guest, Not a member yet? Register   Sign In
external model file loader....
#2

[eluser]Unknown[/eluser]
I have been trying to figure out a way to load models from different directory other than "application/models" directory. I want to load my model from "application/modules".

I have tried the instructions by extending CI_Loader by following instructions provided here
but it is giving me error "Unable to locate the specified class: Model.php" whereas my core "Model.php" is there under "system/core" folder.

I have also tried to load model using

$this->load->model (APPPATH.'modules/mymodel.php');
but no success.

Is there any way i could load models from outside the "application/modules" folder ? Please advise .Thanks


Messages In This Thread
external model file loader.... - by El Forum - 01-23-2009, 09:57 AM
external model file loader.... - by El Forum - 10-31-2013, 08:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB