Quote:When CI loads the library ($this->load->library(‘datamapper’) or in your autoload config), the DataMapper class is instantiated
What if I want to do $this->load->library(‘DataMapperExt’) (my child class) or autoload DataMapperExt in my config file ? I think that scenario makes sense and in that case a problem will arise, but I am not sure since I have not tested yet.
Edit : Humm I see now what you meant by
Quote:If you make your change, then you will run code for every DMZ model instantiation that only needs to run once when the library itself is loaded.
This means that, I have no other option than to autoload the original DataMapper and then make my model extends DataMapperExt. It's a bit weird but it's okay.