Welcome Guest, Not a member yet? Register   Sign In
Problem loading custom library
#1

[eluser]frost9928[/eluser]
Hi guys,

I'm having a problem getting a library to load. I have a total of three libraries that are add-ons to the base CI system. The first one is an access control library. It loads and works just fine. The second is a library to calculate sales tax. It won't load no matter what I do. It's structure is as follows.

taxcalc.php
Code:
<?php
class Taxcalc extends Controller {

   function Taxcalc() {
       parent::Controller();
   }

   function get_state_tax(zip) {

   }
}
?>

The above structure is the same for the access control library which does work and is also the same for the UPS shipping library which doesn't work either. Each file has been placed in the /system/application/libraries folder with lowercase file names and upper cased class names as is CI standard.

I'm loading them with:

Code:
$this->load->library('taxcalc');

And trying to access them with:

Code:
$this->taxcalc->some_function();

Can anyone tell me if I'm doing something wrong or if I may have a problem with my CI install.

Thanks


Messages In This Thread
Problem loading custom library - by El Forum - 04-13-2010, 11:36 PM
Problem loading custom library - by El Forum - 04-14-2010, 01:12 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:14 AM
Problem loading custom library - by El Forum - 04-14-2010, 01:29 AM
Problem loading custom library - by El Forum - 04-14-2010, 08:28 AM
Problem loading custom library - by El Forum - 04-14-2010, 11:05 PM
Problem loading custom library - by El Forum - 04-15-2010, 07:32 AM
Problem loading custom library - by El Forum - 04-15-2010, 07:54 AM
Problem loading custom library - by El Forum - 04-15-2010, 08:22 AM
Problem loading custom library - by El Forum - 04-15-2010, 10:57 PM
Problem loading custom library - by El Forum - 04-16-2010, 11:45 AM
Problem loading custom library - by El Forum - 05-02-2010, 05:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB