Pages
-
Recent Posts
Categories
Links
Meta
Category Archives: Design Patterns
The Singleton – Using a Singleton
In our last article, we built a framework for the singleton class. In my real world example, we designed a singleton class that would give us a current Year for use throughout our accounting system. How do we use it … Continue reading
The Singleton
One of the first PHP design patterns that sticks in your mind when learning about design patterns is the Singleton pattern. Why? Because the Singleton has a catchy name and is easy to remember. The purpose of a singleton is … Continue reading