Created
July 9, 2014 03:02
-
-
Save hissy/9e6d54b44689ad04d436 to your computer and use it in GitHub Desktop.
#concrete5 quick debug snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$req = Request::get(); | |
if ($req->getRequestPath() == 'debug') { | |
// debug some stuff | |
exit; | |
} | |
function dump($v) | |
{ | |
echo '<pre>'; | |
var_dump($v); | |
echo '</pre>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment