Created
May 19, 2011 07:37
-
-
Save biakaveron/980356 to your computer and use it in GitHub Desktop.
extending Debug::vars(), see http://forum.kohanaframework.org/discussion/comment/59485#Comment_59485
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
class Debug extends Kohana_Debug { | |
public static function vars() | |
{ | |
if (func_num_args() === 0) | |
return; | |
$backtrace = debug_backtrace(); | |
$path = $backtrace[0]['file']; | |
$filename = Debug::path($path); | |
$line = $backtrace[0]['line']; | |
$header = '<b>'.$filename.':'.$line.'</b>'; | |
$body = call_user_func_array('Kohana_Debug::vars', func_get_args()); | |
return $header.$body; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment