Jump to content

Manual talk:HTMLForm Tutorial 2

Add topic
From mediawiki.org
Latest comment: 4 years ago by Looxloox in topic Enabling class

Enabling class

[edit]

Hello. Using MW 1.33 and trying to work on an example extension, i can't possibly run this code without this error:

SpecialHelloWorld.php: Class 'MediaWiki\Extension\Example\HTMLForm' not found

Declaring use MediaWiki\MediaWikiServices; at begining of SpecialHelloWorld.php does nothing.

Any idea ? --Looxloox (talk) 14:50, 20 December 2019 (UTC)Reply

Adding validation

[edit]

This section of the tutorial doesn't seem to do anything. (Entering merde does nothing.) If I can figure out the correct syntax, I'll update it. If I'm doing something wrong, I'll amend my comments.

Rstockbower (talk) 18:38, 4 September 2012 (UTC)Reply

Validation does work in general and I'm using it a lot. But perhaps the example is broken, although the syntax appears to be correct.
Another issue could be your MW version, this tutorial was written based on 1.18.x . What version are you on?
--ClementD (talk) 13:32, 5 September 2012 (UTC)Reply
1.18.2. I suspect my code was wrong. I'm building a feature at the moment, so I'll go back later and see if what I did wrong when I'm finished.
Rstockbower (talk) 16:13, 5 September 2012 (UTC)Reply
Okay, do not hesitate to contact me if you need help. And thanks for all the fixes in the tutorial.
--ClementD (talk) 09:37, 6 September 2012 (UTC)Reply