unexpected dynamic data behavior when loading views |
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 |
Welcome Guest, Not a member yet? Register Sign In |