Debug variables in Yii 2
I’ve been working with Yii framework version 2.0 for a few days now, and I find Yii’s Debugger and vardumper function are extremely uncomfortable!
Since for the sake of Simplicity and Quick Development, I’ve created a helper for those who use Yii. You can just call dd($var1, $var2, ….); for dump & die or d($var1, $var2, ….); for dump data.
p/s: Please scroll to the end of this article for sample result.
p/s 2: Those functions work with all PHP version
Post Views: 153