Skip to content

Instantly share code, notes, and snippets.

@dcai
Last active August 10, 2016 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcai/be1f8bc8962f9a791b59 to your computer and use it in GitHub Desktop.
Save dcai/be1f8bc8962f9a791b59 to your computer and use it in GitHub Desktop.
minimal moodle page
<?php
require_once(dirname(dirname(__DIR__)).'/config.php');
require_login();
$context = context_system::instance();
$url = new moodle_url('/blocks/gcal/mappings.php');
$PAGE->set_url($url);
$PAGE->set_context($context);
echo $OUTPUT->header();
echo $OUTPUT->heading('mapping', 2);
echo $OUTPUT->footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment