get('dbhost') . ';dbname=' . $config->get('dbname'), $config->get('dbuser'), $config->get('dbpass')); } public static function singleton() { if( self::$instance == null ) { self::$instance = new self(); } return self::$instance; } } ?>