Welcome Guest, Not a member yet? Register   Sign In
Trouble extending Loader library
#1

[eluser]mrtopher[/eluser]
I'm trying to add a function or 2 to the default CI loader library and am using the process described in the users guide: http://ellislab.com/codeigniter/user-gui...aries.html.

But, when I try to access my function I get a "Call to undefined function" error.

I replaced my code with a simple test as shown below and still get the error:

Code:
class MY_Loader extends CI_Loader
{

    function MY_Loader()
    {
        parent::CI_Loader();
    }
    
    
    function hi_mom()
    {
        echo 'hi mom';
    }
    
}

When I call

Code:
$this->load->hi_mom();

I get "PHP Fatal error: Call to undefined function: hi_mom() in...".

I've confirmed that the MY_Loader file is being used by CI but for some reason it's not picking up my function.

Any ideas?


Messages In This Thread
Trouble extending Loader library - by El Forum - 12-03-2008, 11:47 AM
Trouble extending Loader library - by El Forum - 12-04-2008, 08:22 AM
Trouble extending Loader library - by El Forum - 12-18-2008, 05:41 AM
Trouble extending Loader library - by El Forum - 12-18-2008, 07:53 AM
Trouble extending Loader library - by El Forum - 08-14-2009, 02:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB