June 2017
Beginner to intermediate
368 pages
8h 31m
English
As far as completing the functionality is concerned, the final piece of the jigsaw is to allow users to make comments on models. A new comments form is created in much the same way as described just now. Let us add two new PHP scripts, /comment.php and /comment_form.php:

In comment_form.php, we declare a simple form that allows the user to specify a comment:
/** * Form for adding comments on a model * * @package mod_wavefront * @copyright 2017 Ian Wild * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */require_once($CFG->libdir.'/formslib.php');class mod_wavefront_comment_form extends moodleform ...
Read now
Unlock full access