Welcome Guest, Not a member yet? Register   Sign In
Model loading from Controller
#1

[eluser]Unknown[/eluser]
I have the following code in the controller where model loading is commented out as you can see

function foo()
{

//$this->load->model('user_model');

blah..
blah..
blah..

}

I do not have anything defined in autoload.php that would load models globally.

The problem is that the model appears loaded when I access the function via the controller. The model fetches stuff from the database so that part is doing ok. Weird! I would have expected it to fail since the model loading line above is commented.

I want to know from where the code is loading model is any.
#2

[eluser]Unknown[/eluser]
I found it. I was being loaded from some other model.




Theme © iAndrew 2016 - Forum software by © MyBB