Thanks to everyone who responded.
Robert, yes, the PHP class I was creating is being used by a MediaWiki
extension. The correct approach to test the extension was to create a new
page in my wiki and invoke the extension by entering the appropriate tag in
the page.
On Mon, Jan 16, 2012 at 11:49 AM, Robert Vogel <vogel(a)hallowelt.biz> wrote:
Hi Vance,
is this PHP class used in context of MediaWiki? Like in a MediaWiki
extension (
http://www.mediawiki.org/wiki/Manual:Developing_extensions) or
a maintenancescript (
http://www.mediawiki.org/wiki/Manual:Writing_maintenance_scripts)?
---
Robert Vogel
Social Web Technologien
Softwareentwicklung
Hallo Welt! - Medienwerkstatt GmbH
______________________________
Untere Bachgasse 15
93047 Regensburg
Tel. +49 (0) 941 - 66 0 80 - 198
Fax +49 (0) 941 - 66 0 80 - 189
www.hallowelt.biz
vogel(a)hallowelt.biz
Sitz: Regensburg
Amtsgericht: Regensburg
Handelsregister: HRB 10467
E.USt.Nr.: DE 253050833
Geschäftsführer: Anja Ebersbach, Markus Glaser, Dr. Richard Heigl, Radovan
Kubani
-----Ursprüngliche Nachricht-----
Von: mediawiki-l-bounces(a)lists.wikimedia.org [mailto:
mediawiki-l-bounces(a)lists.wikimedia.org] Im Auftrag von Arocho, Vance A
Gesendet: Montag, 16. Januar 2012 16:41
An: mediawiki-l(a)lists.wikimedia.org
Betreff: [Mediawiki-l] undefined function wfGetDB()
I'm working on a PHP class to execute some database queries in support of
another class that will be used by an extension. But I'm getting the
following error message:
Fatal error: Call to undefined function wfGetDB()
when I try to call a method in my class from a test script. Any ideas as
to how to resolve this?
Vance Arocho
SIE
BCPO Battelle
703-875-2117
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l