Welcome Guest, Not a member yet? Register   Sign In
get_instance returns empty object
#5

[eluser]bretticus[/eluser]
have you tried loading the Loader class perhaps?
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class My_hook {
    public function __construct(){
        $this->loader =& load_class('Loader');
        $this->loader->load->helper('url'); // this is line 6
    }
}

Not tested. Not sure that this won't cause errors.

EDIT: on second thought I have gut feeling that this is a bad idea. Smile


Messages In This Thread
get_instance returns empty object - by El Forum - 10-30-2009, 01:33 PM
get_instance returns empty object - by El Forum - 10-30-2009, 02:18 PM
get_instance returns empty object - by El Forum - 10-30-2009, 02:31 PM
get_instance returns empty object - by El Forum - 10-30-2009, 02:50 PM
get_instance returns empty object - by El Forum - 10-30-2009, 03:26 PM
get_instance returns empty object - by El Forum - 10-30-2009, 03:30 PM
get_instance returns empty object - by El Forum - 10-30-2009, 05:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB