Welcome Guest, Not a member yet? Register   Sign In
Model working in one controller, but not in another.
#3

[eluser]mdrisser[/eluser]
Doing a print_r on $this->types gave me the same type of message.

I'm not seeing much difference between your code and mine, aside from my $data being a class variable and yours being local to the function. Mine is a class variable, because in the constructor I'm setting a few other parts of the array.

I've set the log_threshold to 4 and noticed in the logs that in the Controller that isn't having any problems, the Model is being initialized, but in the Controller that is broken, the Model is not being initialized. I've tried moving $this->load->model('Search_model', 'Search'); to various places within the broken Controller in the vain hope that maybe it just needed to be called in a different place, but kept coming up with the same result.


Messages In This Thread
Model working in one controller, but not in another. - by El Forum - 12-29-2008, 01:56 PM
Model working in one controller, but not in another. - by El Forum - 12-29-2008, 03:14 PM
Model working in one controller, but not in another. - by El Forum - 12-29-2008, 04:33 PM
Model working in one controller, but not in another. - by El Forum - 12-29-2008, 05:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB