Skip to content

Instantly share code, notes, and snippets.

@brettp
Created February 27, 2012 16:24
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 brettp/1925073 to your computer and use it in GitHub Desktop.
Save brettp/1925073 to your computer and use it in GitHub Desktop.
Elgg 1.8 elgg.get() test.
<?php
require_once(dirname(__FILE__) . "/engine/start.php");
$content = <<<JS
<script type="text/javascript">
// normalizes the url to the current <site_url>/activity
elgg.get('/activity', {
success: function(resultText, success, xhr) {
console.log(resultText);
}
});
</script>
JS;
echo elgg_view_page('JS Test', $content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment