Welcome Guest, Not a member yet? Register   Sign In
Can a Library extend the CI_Base class?
#3

[eluser]laytone[/eluser]
[quote author="techgnome" date="1291340484"]It's in the documentation: http://ellislab.com/codeigniter/user-gui...asses.html[/quote]

Maybe my question was not clear?

I know how to extend the core classes. What I want to do is extend the CI_Base class with a class in my library folder.

Right now if you want to access variable in CI you have to use the =& get_instance() method... which is fine, just extra work. I'm wondering if i could extend CI_Base and access the CI variables with $this->db or $this->whatever. Is this legal?


Messages In This Thread
Can a Library extend the CI_Base class? - by El Forum - 12-02-2010, 01:00 PM
Can a Library extend the CI_Base class? - by El Forum - 12-02-2010, 01:41 PM
Can a Library extend the CI_Base class? - by El Forum - 12-02-2010, 01:46 PM
Can a Library extend the CI_Base class? - by El Forum - 12-02-2010, 01:59 PM
Can a Library extend the CI_Base class? - by El Forum - 12-02-2010, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB