[eluser]OverZealous[/eluser]
[quote author="TheJim" date="1268878525"]
To offer an alternative to what Phil said, I believe the problem is that you're loading the class via CI's Loader, which calls _assign_libraries. If you follow the DMZ way of not calling load->model and just do a "new Whatever()" you shouldn't run into that problem.[/quote]
Good call. I actually didn't know that CodeIgniter calls _assign_libraries on models.
I'll have to think about what to do. It's actually kinda bad to use Loader::model(), since DMZ specifically says don't do it.
I might rename _assign_libraries (like, _assign_libraries_private), then use the original method to throw an error when models get loaded manually. This will prevent DMZ models from being loaded by CI.
Or, I could just let CI load the model, but there's no telling if that would be a problem or not.