Memcache, refactoring, View helpers, #16
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@124 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -51,6 +51,9 @@ class ErrorHandler
|
||||
}
|
||||
$text = '<table class="req"><thead><tr><th>Variable</th><th>Value</th></tr></thead><tbody>';
|
||||
foreach ($array as $key => $value) {
|
||||
if (is_array($value)) {
|
||||
$value = print_r($value, true);
|
||||
}
|
||||
$value = ($value) ? htmlentities($value, ENT_QUOTES, 'UTF-8') : ' ';
|
||||
$text .= '<tr><td>' . $key . '</td><td class="code"><div>' . $value . '</div></td></tr>';
|
||||
}
|
||||
@ -68,6 +71,7 @@ class ErrorHandler
|
||||
*/
|
||||
static public function showDebug($exception)
|
||||
{
|
||||
ob_clean();
|
||||
$class = get_class($exception);
|
||||
|
||||
$method = Env::Server('REQUEST_METHOD', '');
|
||||
|
Reference in New Issue
Block a user