Skip to content

Instantly share code, notes, and snippets.

@vidhav
Created July 29, 2014 11:52
Show Gist options
  • Save vidhav/f32e873275cc74e18d4b to your computer and use it in GitHub Desktop.
Save vidhav/f32e873275cc74e18d4b to your computer and use it in GitHub Desktop.
GlobalVars
<?php
if ($modx->event->name = 'OnLoadWebDocument') {
$modx->setPlaceholder('get', '<pre>'.print_r($_GET, true).'</pre>');
$modx->toPlaceholders($_GET, 'get');
}
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment