/ Published in: PHP
Expand |
Embed | Plain Text
/** * Prints out debug information about given variable. * * Only runs if debug level is greater than zero. * * @param boolean $var Variable to show debug information for. * @param boolean $showHtml If set to true, the method prints the debug data in a screen-friendly way. * @param boolean $showFrom If set to true, the method prints from where the function was called. * @link http://book.cakephp.org/view/458/Basic-Debugging */ function debug($var = false, $showHtml = false, $showFrom = true) { if (Configure::read() > 0) { if ($showFrom) { } echo "\n<pre class=\"cake-debug\">\n"; if ($showHtml) { } } }
You need to login to post a comment.
