10-04-2012, 08:03 AM
[eluser]Rolly1971[/eluser]
if it was me i would separate each class into it's own file. You could even drop these class files into a sub directory in the libraries folder. DOn't forget though that in order to load the lib's you would need to get the CI instance:
then to load your libraries you would use:
if it was me i would separate each class into it's own file. You could even drop these class files into a sub directory in the libraries folder. DOn't forget though that in order to load the lib's you would need to get the CI instance:
Code:
class someclass{
private $ci;
function __construct()
{
$this->ci =& get_instance();
}
then to load your libraries you would use:
Code:
$this->ci->load->library('subfolder/classname');