Details
-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
2.1, 2.2, 2.2.1
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
-
- Make a form definition.
- Try rendering echo $form->html(); or $form->display();
- Behavior should be the same.
Description
There are cases where the developer needs the form html instead of immediate display. This behavior would be consistent with $OUTPUT and html_writer.
// Returns html of form
|
$html = $form->html();
|
I have included a patch that adds this behavior.
Attachments
Issue Links
- will be (partly) resolved by
-
MDL-26956 Need to be able to search for user in 'Enrolled Users'
-
- Closed
-