Example #1
0
 static function dump($return = false)
 {
     $dump = '<h1>GET</h1>';
     $dump .= debug::getDump($_GET, true);
     $dump .= '<h1>POST</h1>';
     $dump .= debug::getDump($_POST, true);
     $dump .= '<h1>FILES</h1>';
     $dump .= debug::getDump($_FILES, true);
     if ($return) {
         return $dump;
     } else {
         print $dump;
     }
 }
Example #2
0
 static function dump($return = false)
 {
     $table = XML::element('table', null, array('border' => '1', 'style' => 'background-color: #FFF; color: #000;'));
     $tr = XML::element('tr', $table);
     $td = XML::element('td', $tr, array('style' => 'font-weight: bold;'), 'Method');
     $td = XML::element('td', $tr, null, self::$METHOD);
     $tr = XML::element('tr', $table);
     $td = XML::element('td', $tr, array('style' => 'font-weight: bold;'), 'Resource');
     $td = XML::element('td', $tr, null, self::$RESOURCE);
     $tr = XML::element('tr', $table);
     $td = XML::element('td', $tr, array('style' => 'font-weight: bold;'), 'Controller');
     $td = XML::element('td', $tr, null, self::$CONTROLLER);
     $tr = XML::element('tr', $table);
     $td = XML::element('td', $tr, array('style' => 'font-weight: bold;'), 'Action');
     $td = XML::element('td', $tr, null, self::$ACTION);
     $tr = XML::element('tr', $table);
     $td = XML::element('td', $tr, array('style' => 'font-weight: bold;'), 'Arguments');
     $td = XML::element('td', $tr, null, debug::getDump(self::$ARGS, true));
     if ($return) {
         return $table;
     } else {
         print $table;
     }
 }