Codeigniter: Check where model is loaded from?
- by qwerty
I'm having the strangest thing ever right now.
I "disabled" a model because i don't need to access it ever again. I did so by echoing out an error string in the __construct() and right after that die(). That way i would notice if i ever loaded the model, even by mistake, which should never happen. Alright?
The problem is, the model is not loaded ANYWHERE in the entire project, but it still gets loaded for some reason. It's not auto loaded, that's for sure.
Is it possible to track down where a model is loaded? Like which line it happens etc?