Config Static Variables Not Working |
(08-06-2021, 04:56 AM)MGatner Wrote: I really do not like static access from object instances, it always gets confusing (as is the case here). My advice would be to keep using the Config as you are for the object properties, but anytime you need to access the static properties just do it from the class directly: I also don't like to use statics usually but in this case I am loading a couple of json files & don't wanna load again & again to avoid overhead. So the only solution is to use static variables as they maintain the state. While I was resolving this issue I discovered a very strange thing that some files are loaded again & again. I posted this question here https://forum.codeigniter.com/thread-79853.html. |
Welcome Guest, Not a member yet? Register Sign In |