Welcome Guest, Not a member yet? Register   Sign In
Trying to use PHP5 "helper classes" with Custom CodeIgnitor Library
#2

[eluser]bradym[/eluser]
When using outside code I create a helper, plugin or library (depending on which one fits my situation best) and just include() the existing code. Then I build functions to use the outside class. There's no reason not to use the include function where needed.

For example, I built a plugin to use the google maps class I use. It does an include() and then inside the function I use the google maps object to create the code for the map, which is returned from the plugin. When I need a map, I use the plugin.

HTH,

Brady


Messages In This Thread
Trying to use PHP5 "helper classes" with Custom CodeIgnitor Library - by El Forum - 04-04-2008, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB