Kathleen Borja wrote:
>       -If I'll be adding some form elements, where shall I put them?on the
> SpecialThesaurus.php or Thesaurus.php?
>       
>       -So, for now, I have 2 files in the extensions/Thesaurus directory. Is 
> it right?
>       
> Again, thanks a lot. (^_^)

Yes, it is right.
You create a really light Thesaurus.php that is run on every page view,
and a bigger file SpecialThesaurus.php which is only loaded when
Special:Thesaurus is requested.

You would add the form elements into SpecialThesaurus.php, at the
execute method. You can change the $wgOut->addHTML() to show whatever do
want.
You don't need to hardcode the html, though. You can use Xml::Element()
for that.



_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to