Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Form API: Difference between revisions

From MoodleDocs
 
Line 1: Line 1:
== Usage ==
== Usage ==
This section says: "For creating a form in moodle, you have to create class extending moodleform class", but WHERE do you create this class? Which .php file?
This section says: "For creating a form in moodle, you have to create class extending moodleform class", but WHERE do you create this class? Which .php file? The documentation should be clear about where you should put all the different sections of code.
Where do you put the "class simplehtml_form extends moodleform..." code? Where do you put the code that processes the form data when the form is submitted?

Revision as of 13:44, 1 April 2016

Usage

This section says: "For creating a form in moodle, you have to create class extending moodleform class", but WHERE do you create this class? Which .php file? The documentation should be clear about where you should put all the different sections of code. Where do you put the "class simplehtml_form extends moodleform..." code? Where do you put the code that processes the form data when the form is submitted?