Re: Problem extending mysqli - "No database connected"
| From: | Stut | Date: | Fri, 29 Jun 2007 17:57:34 +0000 |
| Subject: | Re: Problem extending mysqli - "No database connected" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257979@lists.php.net to get a copy of this message | ||
Lee PHP wrote:
Also, this is a static method so there is no $this available. -Stut -- http://stut.net/public static function getInstance($url = null) { // Set the URL if one is provided. if (isset($url)) { $this->setUrl($url); } // Instantiate the Singleton if not already instantiated. if(empty(self::$INSTANCE)) { self::$INSTANCE = new Database(); }return self::$INSTANCE; }