Hi, Courtney,
I am writing an extension to display some customized tags with
information from external database.
For example <MyExtension name="hello" db="external"/> shall
retrieve
some some information form the database "external" and show return a
value of "world". Now I can do this in my extension module. But
during the development I need to debug and dump data from time to time.
For a line in wiki:
<printMe name="test"/>
with the extension code in php:
function printMe_Tag($input, $params) {
wfVarDump($params);
return ("hello");
}
I hope it returns "hello" with the dump value: name=>"test". But I
cannot get the dump value. It seems wfVarDump() calls the global
$wgOut->addHTML(). I tried the global $wgOut, it didn't work either. I
guess that I have made some mistakes here. Please point it out if you
know. Thanks!
Regards,
Bin
On Mar 25, 2008, at 5:41 AM, Christensen, Courtney wrote:
Hey Bin,
Could you tell me about the variable you are trying to dump and the
extension you are trying to write? What is your expected output? Is
your extension calculating some input and displaying the results, or
is
it modifying functionality?
Hopefully these answers will help us give you a better answer.
-Courtney
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l