Search found 3 matches
- Tue Nov 13, 2007 4:11 am
- Forum: PHP - Code
- Topic: Simple (?) Singleton Question
- Replies: 4
- Views: 315
Simple (?) Singleton Question
Not being a seasoned PHP developer, tonight I started playing with the use of the Singleton pattern to store configuration information. What I was surprised to find was that the instance - at least the one I'm creating - isn't really a singleton. With each request, the constructor is called. Isn't t...
- Mon Nov 12, 2007 8:09 pm
- Forum: PHP - Code
- Topic: Simple (?) Singleton Question
- Replies: 0
- Views: 76
Simple (?) Singleton Question
Not being a seasoned PHP developer, tonight I started playing with the use of the Singleton pattern to store configuration information. What I was surprised to find was that the instance - at least the one I'm creating - isn't really a singleton. With each request, the constructor is called. Isn't t...
- Mon Nov 12, 2007 8:07 pm
- Forum: PHP - Code
- Topic: Simple (?) Singleton Question
- Replies: 0
- Views: 135
Simple (?) Singleton Question
Not being a seasoned PHP developer, tonight I started playing with the use of the Singleton pattern to store configuration information. What I was surprised to find was that the instance - at least the one I'm creating - isn't really a singleton. With each request, the constructor is called. Isn't t...