Codeigniter: Check where model is loaded from?
Posted
by
qwerty
on Stack Overflow
See other posts from Stack Overflow
or by qwerty
Published on 2012-10-16T16:55:20Z
Indexed on
2012/10/16
17:00 UTC
Read the original article
Hit count: 200
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?
© Stack Overflow or respective owner