* $ADMIN->add('userinterface', new admin_externalpage('foo', get_string('foo'), * $CFG->wwwdir . '/' . '$CFG->admin . '/foo.php', 'some_role_permission')); *
* require(__DIR__.'/../../config.php'); * require_once($CFG->libdir.'/adminlib.php'); * admin_externalpage_setup('foo'); * // functionality like processing form submissions goes here * echo $OUTPUT->header(); * // your HTML goes here * echo $OUTPUT->footer(); *