I have a custom library that we will call library1. I'm trying to extended library1 with another custom library called library2.
I could do a require_once and include library1 in library2. The other option would be to have library2 use codeigniters load method and load library1 from inside library2.
Any one have any thoughts on why one way is better than the other?
First of all, "oop"? I think you are seriously missing the point of mcv, secondly check this here
"CodeIgniter’s Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files. When CodeIgniter runs it follows a specific execution process, diagramed in the Application Flow page. There may be instances, however, where you’d like to cause some action to take place at a particular stage in the execution process. For example, you might want to run a script right before your controllers get loaded, or right after, or you might want to trigger one of your own scripts in some other location."
I stumbled onto this problem recently, and for me using require_once proved to be a simple and efficient solution.