I was wondering if anyone could offer tips on "best practices" for using global state in a web application - PHP in particular, although they need general guidelines like design patterns, etc.
For the moment, I'm just using a static class, calling it Configs. I suppose this looks like using a registry template, but there is certainly a more elegant way to handle global data in an application - I just can't think of it better.
David source
share