Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit f3ce86b

Browse files
committed
update
1 parent d75d71f commit f3ce86b

File tree

6 files changed

+1517
-0
lines changed

6 files changed

+1517
-0
lines changed

src/helpers/UtilHelper.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,24 @@ static public function gitCheck()
3737
// var_dump($c,$result, $data);
3838
return ( $result === 1 ) ? $data : null;
3939
}
40+
41+
/**
42+
* Display a var dump in firebug console
43+
*
44+
* @param object $object Object to display
45+
*/
46+
static public function fd($object, $type = 'log')
47+
{
48+
$types = array('log', 'debug', 'info', 'warn', 'error', 'assert');
49+
50+
if (!in_array($type, $types))
51+
$type = 'log';
52+
53+
echo '
54+
<script type="text/javascript">
55+
console.'.$type.'('. json_encode($object).');
56+
</script>
57+
';
58+
}
59+
4060
}

0 commit comments

Comments
 (0)