Including 3rd party classes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Including 3rd party classes (/showthread.php?tid=32525) |
Including 3rd party classes - El Forum - 07-26-2010 [eluser]GeXus[/eluser] Hello, I'm trying to setup Maxmind and they have a GeoIP class that they include, is there a way to simply include this file? Or does it need to be re-worked as a library or something? Thanks! Including 3rd party classes - El Forum - 07-26-2010 [eluser]mddd[/eluser] You can just include it using a include() call and use it like you would in 'normal' php. Including 3rd party classes - El Forum - 07-26-2010 [eluser]danmontgomery[/eluser] Most vanilla php classes can be loaded normally as libraries. All the library loader is doing is instantiating the class and assigning it to a variable. Including 3rd party classes - El Forum - 09-28-2010 [eluser]seanloving[/eluser] @GeXus, did you get Maxmind setup and working? Anything special to know about how you did it? Thanks. |