Welcome Guest, Not a member yet? Register   Sign In
How can i load a library file in a helper file?
#9

[eluser]dcunited08[/eluser]
[quote author="haraldo" date="1226087676"]Thanks for the input. I may just do somrthing like that.

If you have time, would you explain your theory as to why you would do it this way, over the way i'm doing it.

Many thanks,[/quote]
When I am using one of CI's libraries and I want to add functionality, I extend it so that the code is all in the same place and it gets loaded automatically when I load the library. I also like to keep most items in static functions instead of stand-alone functions because it does the same thing Namespaces do in other languages, lowers the possibility of name collisions. It also allows you to know that it is associated with. I use an editor with code-assist and it helps that the function only shows up when I am attempting to use that library.


Messages In This Thread
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 06:48 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 06:57 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 06:59 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 07:10 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 07:19 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 07:19 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 07:38 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 07:54 AM
How can i load a library file in a helper file? - by El Forum - 11-07-2008, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB