Hello all,
I would like to ask how do I get the article content using the Title class and display the content on my main page.
Currently, I have to first retrieve the recently created articles then get the content of those title. I am using newest page extension (https://www.mediawiki.org/wiki/Extension:Newest_Pages) to do so. However, I tried editing the file but fail because I am echo-ing out the content instead of displaying on the main page.
$article = new Article( Title::newFromText( $title ) ) ; echo $article->getContent();
How should I do that? I am thinking of parser function. But I am not sure if I am on the right track.
Thanks for all assistance and time!