Jack Eapen C wrote:
Thanks. When I added $articleID= Parser::getArticleID(); to my extension
code, I got a blank page.
I guess I need to declare some other global variable or so... Wht should
be that?
Regards,
Jack
getArticleID() is not a static member function. It must be called from
an object.
You can call it from $wgParser->getArticleID() but *it's not guaranteed
to work*. You should use the parser object which is being passed to your
extension.