Welcome Guest, Not a member yet? Register   Sign In
Constructor Problem
#4

[eluser]Dam1an[/eluser]
I'm assuming that's only specific to that function
It's just trying to make the point that in most cases (eg controllers you use $this->load etc) but in this case you need to use $CI->load etc

If you make the CI instance a class variable, you access it just like any other class variable, ie. $this->CI
so it now becoes $this->CI->load etc

Clear things up a bit?


Messages In This Thread
Constructor Problem - by El Forum - 06-21-2009, 03:48 AM
Constructor Problem - by El Forum - 06-21-2009, 03:52 AM
Constructor Problem - by El Forum - 06-21-2009, 04:14 AM
Constructor Problem - by El Forum - 06-21-2009, 04:18 AM
Constructor Problem - by El Forum - 06-22-2009, 06:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB