grisha2217
Active member
Hello, i often code a modifications for my forum and use var_dump.
I had change helperDump function for debug only for admin
Okay, it's good working in templates ({xen:helper dump, $var})
But what's about var_dump function in php code? Is there customizable function for developing, that i can use var_dump in code and only i will see result of this function? Sorry for my english.
I had change helperDump function for debug only for admin
PHP:
public static function helperDump($data)
{
if (XenForo_Visitor::getUserId() === 1)
{
return Zend_Debug::dump($data, null, false);
}
}
Okay, it's good working in templates ({xen:helper dump, $var})
But what's about var_dump function in php code? Is there customizable function for developing, that i can use var_dump in code and only i will see result of this function? Sorry for my english.