WeBWorK::Controller - a controller for the WeBWorK Mojolicious app. It is a subclass of the Mojolicious::Controller class with additional WeBWorK-specific fields.
Return the course environment (WeBWorK::CourseEnvironment) associated with this request. If $new is specified, set the course environment to $new before returning the value. In this case the value of $new is also saved to the stash as 'ce'. This means that this value is available as $ce in the templates.
Return the database (WeBWorK::DB) associated with this request. If $new is specified, set the database to $new before returning the value. In this case the value of $new is also saved to the stash as 'db'. This means that this is available as $db in the templates.
Return the authenticator (WeBWorK::Authen) associated with this request. If $new is specified, set the authenticator to $new before returning the value. In this case the value of $new is also saved to the stash as 'authen'. This means that this value is available as $authen in the templates.
Return the authorizer (WeBWorK::Authz) associated with this request. If $new is specified, set the authorizer to $new before returning the value. In this case the value of $new is also saved to the stash as 'authz'. This means that this value is available as $authz in the templates.
Return the time this request was received for processing, which we refer to as the submitTime. The time is recorded very early on in the processing of the request. If $new is specified, set submitTime to $new before returning the value.
Format a message for HTML output reporting an exception and any associated warnings.
Format a JSON message for log output reporting an exception and any associated warnings.
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'