Welcome Guest, Not a member yet? Register   Sign In
using a class from phpclasses.org
#4

[eluser]NogDog[/eluser]
[quote author="rakesh" date="1239346077"]my knoweledge is limited and i couldnt follow userguide for these perticular classes.

could u please explain specifically for above classes. how to put them in library and then how to initialise/use them in a controller.

thanks[/quote]
Since I do not know those specific classes, no, I cannot.

In general, copy the class file to "<CI directory>/application/libraries/classname.php" where "classname" is the name of the class. Make sure that in the actual class file the class is named with an initial capital letter; e.g. the class is named "Myclass" while the file is "myclass.php".

Then in your controller:
Code:
$this->load->library('myclass');
// use a method from it:
$this->myclass->some_method();
Of course, this is just a synopsis of what I linked to in the users' guide, so it might not be any help.


Messages In This Thread
using a class from phpclasses.org - by El Forum - 04-09-2009, 06:22 PM
using a class from phpclasses.org - by El Forum - 04-09-2009, 07:27 PM
using a class from phpclasses.org - by El Forum - 04-09-2009, 07:47 PM
using a class from phpclasses.org - by El Forum - 04-09-2009, 08:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB