Best way to handle global state

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-06-13T21:16:58Z Indexed on 2010/06/13 21:22 UTC
Read the original article Hit count: 382

Hi there, I was wondering if anyone could offer some advice on 'best practices' for using global state in a web application - specifically PHP, although im looking for generic best practices i.e. design patterns etc.

At the moment I just use a static class, calling it Configs. I suppose this is similar to using the registry pattern but surely there is a more elegant way of handling global data within an application - i just cant think of a better way though.

© Stack Overflow or respective owner

Related posts about php

Related posts about best-practices