Welcome Guest, Not a member yet? Register   Sign In
Library playing me up!
#8

[eluser]gon[/eluser]
[quote author="wiredesignz" date="1218969592"][quote author="usmc" date="1218946950"]Instead of $CI it should be $this->CI[/quote]

Why should it be $this->CI if the super object is not required as a class variable?

Code:
$CI =& get_instance();    // is perfectly acceptable


@Colin, ditto, and you should know better.

Giving people assistance is one thing, at least ensure you give accurate information.[/quote]


IMHO, Colin's suggestion was perfectly right and accurate for solving the error. He didn't say that his was the only way to do that.
Indeed I agree that keeping a common reference for the object is the right thing to do. Much more clear.

And what if the answer had been wrong? Probably another one (not you) would have seen it and made a polite correction to it. I don't think people sends inaccurate responses deliberately.


EDIT: Very funny. You wrote a post just after this making recommendations on using private vars for storing the CI variable. I didn't read that you could call get_instance on every method of the object. Why didn't you give accurate info? :coolgrin:


Messages In This Thread
Library playing me up! - by El Forum - 08-16-2008, 04:27 PM
Library playing me up! - by El Forum - 08-16-2008, 05:22 PM
Library playing me up! - by El Forum - 08-16-2008, 05:39 PM
Library playing me up! - by El Forum - 08-16-2008, 11:39 PM
Library playing me up! - by El Forum - 08-16-2008, 11:52 PM
Library playing me up! - by El Forum - 08-17-2008, 12:07 AM
Library playing me up! - by El Forum - 08-17-2008, 03:30 AM
Library playing me up! - by El Forum - 08-17-2008, 05:04 AM
Library playing me up! - by El Forum - 08-17-2008, 05:48 AM
Library playing me up! - by El Forum - 08-17-2008, 09:41 AM
Library playing me up! - by El Forum - 08-17-2008, 11:20 AM
Library playing me up! - by El Forum - 08-17-2008, 12:17 PM
Library playing me up! - by El Forum - 08-17-2008, 05:24 PM
Library playing me up! - by El Forum - 08-17-2008, 07:26 PM
Library playing me up! - by El Forum - 08-18-2008, 05:56 AM
Library playing me up! - by El Forum - 08-18-2008, 07:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB