[DB] singleton($twinkyTwinkyLittleStar_GuideMeToTheNearestBar)
| From: | Matthias H. Risse | Date: | Tue, 15 Jun 2004 09:07:30 +0000 |
| Subject: | [DB] singleton($twinkyTwinkyLittleStar_GuideMeToTheNearestBar) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13149@lists.php.net to get a copy of this message | ||
Hi!
I am one of those who does not like to pass
around references of my database connection all
the time.
It seems this has been dicussed previously:
- http://pear.php.net/bugs/bug.php?id=669&edit=1
- http://aspn.activestate.com/ASPN/Mail/Message/pear-dev/2077309
Does anyone know of a relatively clean approach
to avoid passing around the singleton until such a method
is available or _did i miss something_ in DB's APIdoc?
I am thinking about storing a reference into a _SESSION-variable, but
I am a little unsure if you would consider this as clean/clever
approach?
Constructive comments are warmly welcome!
Yours,
//Matthias