Hi Everyone !!
I am a newbie currently installing mediawiki.
I had a basic question:
How to print the output (of php code like print array)
while writing any extension so that
I can know when I am making mistakes in code?
Thanks,
^_^ All of us lazy ones just use good ole var_dump and use view-source to look at the start of the page where output shows up. Though, if you are far enough into MW there is wfVarDump which will work similarly but print into the content area. Though, I tend not to rely on it as there are cases where your bugs may be in the actual content area being messed with or cleared after you dump the content of your var and as a result your debugging info just dissapears. You can also use wfDebug and turn on debug comments.
~Daniel Friesen(Dantman) of: -The Nadir-Point Group (http://nadir-point.com) --It's Wiki-Tools subgroup (http://wiki-tools.com) --Games-G.P.S. (http://ggps.org) -And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
gbtkjd dgjksbg wrote:
Hi Everyone !!
I am a newbie currently installing mediawiki.
I had a basic question:
How to print the output (of php code like print array)
while writing any extension so that
I can know when I am making mistakes in code?
Thanks,
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org