![]() |
How to expire/delete/nullify the data array going into a view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to expire/delete/nullify the data array going into a view (/showthread.php?tid=3071) |
How to expire/delete/nullify the data array going into a view - El Forum - 09-07-2007 [eluser]LeePR[/eluser] I have a view like this: Code: // Main view Code: // Thing 1 Code: // Thing 2 Code: // Thing 1 Code: // Main view Code: // Thing 2 How to expire/delete/nullify the data array going into a view - El Forum - 09-07-2007 [eluser]LeePR[/eluser] If I var_dump the CI instance, I see this (actual code, not relevant to the above example): Code: ["load"]=> The "state issued" stuff is the stuff I'm trying to get rid of. Is it safe to just do something like Code: $CI = & get_instance(); How to expire/delete/nullify the data array going into a view - El Forum - 09-07-2007 [eluser]LeePR[/eluser] `$CI->_ci_cached_vars = null` doesn't work. Anyone? How to expire/delete/nullify the data array going into a view - El Forum - 09-07-2007 [eluser]John_Betong[/eluser] Hi LeePR, Code: // Main view Try the above, it should work. I believe the method $this->load->view(...) sole purpose is to output a single view/html webpage. Ironically my problem is usually "Variable not declared" so I tend to use code such as the following: Code: <div> |