Welcome Guest, Not a member yet? Register   Sign In
Is it possible to extend your own libraries/helpers...etc.
#7

[eluser]CMCDragonkai[/eluser]
Its interesting how CI doesn't pick up on that.

I fixed that then there was an error:

Fatal error: Call to undefined function get_instance()

When I removed this from "MY_URI" library:

Code:
if (!isset($this->CI)){
            $this->CI =& get_instance();
        }

The error was gone.

Maybe when a library is extended, there is no need to do $this->CI =& get_instance().
Maybe it's only needed when new libraries are created, or when libraries are replaced.


Messages In This Thread
Is it possible to extend your own libraries/helpers...etc. - by El Forum - 12-03-2010, 07:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB