Skip to content

Commit

Permalink
Update sample snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
vanchelo committed Dec 16, 2014
1 parent 9cdd1cf commit 33bb470
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<?php
return '<pre>' . print_r($_REQUEST[$modx->getOption('fastrouter.paramsKey', null, 'fastrouter')], true) . '</pre>';
$key = $modx->getOption('fastrouter.paramsKey', null, 'fastrouter');
$params = isset($_REQUEST[$key]) ? $_REQUEST[$key] : array();

return '<pre>' . print_r($params, true) . '</pre>';

0 comments on commit 33bb470

Please sign in to comment.