CodeIgniter: Extending the native ‘Model’ and make it your own.
Friday, November 7th, 2008Today I took advantage of CodeIgniter’s ability to extend the native libraries, and I was well satisfied that it just works.
Let me elaborate, I’m in the process of creating models for my CI project, and realized that certain functions within the models were getting repetitive. Using CI’s ability to create my own custom libraries, I was able to create my own custom ‘Model’ which extends from the core ‘Model’ object. How this simple architecture has cleaned up my code is simply remarkable.
So read on…
(more…)