Created
July 8, 2017 03:10
-
-
Save meysampg/f0a4d775b0403df92c52a519431e3ba4 to your computer and use it in GitHub Desktop.
define `dd` function for Yii2
This file contains hidden or 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 | |
// add anywhere after `require(__DIR__ . '/../vendor/autoload.php');` on index.php file | |
function dd($v) { | |
\yii\helpers\VarDumper::dump($v, 10, true); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment