Welcome Guest, Not a member yet? Register   Sign In
unexpected dynamic data behavior when loading views
#6

(This post was last modified: 04-15-2016, 03:24 AM by ivantcholakov.)

The clear_vars() method https://www.codeigniter.com/user_guide/l...clear_vars could be used if you have a special case.

So, the current state is:
"All view variables are "global", but you can clear the internal cache at will".

The desired behavior should be an inversion, I think
"All variables have isolated view scopes, "global" variables are to be registered explicitly." But this is not an idea for CodeIgniter 3, it will cause a lot of pain. Propose it for CI 4, please.

Edit: I'll post a link there. http://forum.codeigniter.com/thread-64969.html
Reply


Messages In This Thread
RE: unexpected dynamic data behavior when loading views - by ivantcholakov - 04-15-2016, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB