Sancar Saran wrote:
Using globals with namespace does not create any problems. Searcing google
"php globals problems" produces nothing.

I use GLOBALS for
Language key pairs
Static Config variables
(Db, memcache, etc) resource pointers

I was much faster and pratic than any oo way..

How would you extend GLOBALS to support stuff like lazy loading or namespaces/modules? You can't without changing every piece of code where you access the GLOBALS instead of just where you set it.

nico

Reply via email to