Registries...

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Registries...

Post by nielsene »

So I'm assembling a registry right now, primarily for holding the DB class, possibly for some of the PhraseBooks. I know that in general I should avoid the use of the registry, as its close to globals.

When dealing with an application specific registry (ie getDBConnection() versus getResource(DB_CONNECTION) ) would you typically still create a generic registry at as base clss for the application specific registry?
Post Reply