Maybe CI’s way of loading libraries is not the best way in this case as i need multiple instances of the same library/class. Therefor a $ci->load->class(‘myclass’) method could be handy. It should only load the library-class and leave the rest to the developer.
So, any thoughts? Or, perhaps an alternate solution?
Now that the core libraries are extendable, you could add your class() method to the Loader, at least under PHP 5. Rick fixed Loader extendibility at the last minute for v1.5.0, but I’m not sure about support in PHP 4 yet. I’m sure he addressed that, but you’ll need try it.
Ah, no, the loader cannot be extended in PHP4. Already tried. Edit: you are right, it does in PHP5.
