mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 01:52:40 +00:00
Converging on 4px for border-radius.
Updating debug() to output a tiny bit more HTML so it can be made sexy.
This commit is contained in:
parent
1c40a37439
commit
ca078d9a25
3 changed files with 38 additions and 17 deletions
|
@ -82,10 +82,12 @@ function debug($var = false, $showHtml = null, $showFrom = true) {
|
|||
$line = $calledFrom[0]['line'];
|
||||
}
|
||||
$html = <<<HTML
|
||||
<strong>%s</strong> (line <strong>%s</strong>)
|
||||
<div class="cake-debug-output">
|
||||
<span><strong>%s</strong> (line <strong>%s</strong>)</span>
|
||||
<pre class="cake-debug">
|
||||
%s
|
||||
</pre>
|
||||
</div>
|
||||
HTML;
|
||||
$text = <<<TEXT
|
||||
|
||||
|
@ -104,7 +106,7 @@ TEXT;
|
|||
}
|
||||
$var = print_r($var, true);
|
||||
if ($showHtml) {
|
||||
$var = str_replace(array('<', '>'), array('<', '>'), $var);
|
||||
$var = htmlentities($var);
|
||||
}
|
||||
printf($template, $file, $line, $var);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue