Closed lostrogit closed 1 week ago
Using this way to call the classes here https://github.com/Bildungsportal/moodle-local_table_sql/blob/main/classes/receiver.php#L26-L29, I think you will need to include require_once($CFG->libdir . '/externallib.php'); before call them, or better use the complete namespace -> core_external[classname] in order to prevent an error.
require_once($CFG->libdir . '/externallib.php');
Please see also https://moodledev.io/docs/4.5/apis/subsystems/external/writing-a-service#functional-specification
Using this way to call the classes here https://github.com/Bildungsportal/moodle-local_table_sql/blob/main/classes/receiver.php#L26-L29, I think you will need to include
require_once($CFG->libdir . '/externallib.php');
before call them, or better use the complete namespace -> core_external[classname] in order to prevent an error.Please see also https://moodledev.io/docs/4.5/apis/subsystems/external/writing-a-service#functional-specification