Welcome Guest, Not a member yet? Register   Sign In
Form validation returning FALSE
#12

(04-30-2019, 03:48 PM)gmgj Wrote: $this->CI =& get_instance();
in the constructor and many of the functions return $this.

The makes the return rather large, and redundant and circular.

Actually, it's not really large. The return is a reference which (more or less) uses only enough memory to hold a memory address. The debugger is confused and makes it look huge. It's only circular in that it appears to be copied. It's kind of like when you have two mirrors facing each other. There aren't really thousands of rooms inside each other, merely reflections of reflections going on forever.
Reply


Messages In This Thread
Form validation returning FALSE - by dwlamb - 10-14-2017, 12:05 PM
RE: Form validation returning FALSE - by PaulD - 10-15-2017, 04:58 AM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 10:23 AM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 01:06 PM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 06:45 PM
RE: Form validation returning FALSE - by gmgj - 04-17-2019, 11:38 AM
RE: Form validation returning FALSE - by gmgj - 04-30-2019, 03:48 PM
RE: Form validation returning FALSE - by dave friend - 05-01-2019, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB