[eluser]natefons[/eluser]
if i want to build a class with constructors, inspectors and methods and what not.
that i can create multiple instances of that class
class pen
{
default constructor
inspectors
methods
}
$data= array('id'=>3,'make'=>'papermate');
$bic=new pen($data);
$data= array('id'=>5,'make'=>'ballpoint');
$n=new pen($data);
bic->getmake(); //papermate
$n->getmake(); //ballpoint
(sorry if this syntax isnt perfect..just wanted an example to show what i wanted)
how can i do this with CI...i read up on the user guide, and a library seems like my best bet...am i right? if not what should i do?