Need Help Modifying Core classes. |
[eluser]bretticus[/eluser]
I finally understand what you mean by loose coupling after watching Elliot's video. Yes, it's certainly an attractive prospect to copy a folder with the controller and views together. Again, I would put a lot of that logic in a library to reuse it. Simply because I like the abstraction of instantiating a class that I can alter accordingly. I feel that model of development is even more modular, but I digress. Things to note about the video. He is using an old versuion of CI (old video I pressume.) Seems to be relatively the same though. Instead of altering the core files, he could have easily extended those core classes in his application folder. The caveat is that MY_Loader.php and MY_routes.php also need to be copied into another application with the module folder. However, this makes the core very easy to upgrade because from that point on, you do not need to edit those files each time you download and unzip the core files. See Extending Core Class. Enjoy. |
Messages In This Thread |
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:17 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:33 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:36 PM
Need Help Modifying Core classes. - by El Forum - 09-21-2009, 11:47 PM
|