[eluser]elci[/eluser]
Is there any "best practice" when it comes to extending custom libraries?
I started reworking an old web application project with CI, but I got to a stage where I had to figure out how to include my old custom classes into the framework's paradigms.
I'll use a very cliche simplified example of what I need done:
class vehicle{}
class sedan extends vehicle{}
class mercedes extends sedan{}
class truck extends vehicle{}
class ford extends truck{}
and so on ...
load->library() is strictly tied to the classes' names, and somehow it doesn't feel right to add to add my own core classes, and that wouldn't solve the problem of chaining more than two classes. So far I have not been able to go around the use of straight PHP include() for the base classes.
Is there a CI way of doing this?