Base for a static organization website

request_panel.ctp 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Request Panel Element
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @since DebugKit 0.1
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. */
  18. ?>
  19. <h2> <?php echo __d('debug_kit', 'Request'); ?></h2>
  20. <h4>Cake Params</h4>
  21. <?php echo $this->Toolbar->makeNeatArray($content['params']); ?>
  22. <h4>Post data</h4>
  23. <?php
  24. if (empty($content['data'])):
  25. echo '<p class="info">' . __d('debug_kit', 'No post data.') . '</p>';
  26. else:
  27. echo $this->Toolbar->makeNeatArray($content['data']);
  28. endif;
  29. ?>
  30. <h4>Query string</h4>
  31. <?php
  32. if (empty($content['query'])):
  33. echo '<p class="info">' . __d('debug_kit', 'No querystring data.') . '</p>';
  34. else:
  35. echo $this->Toolbar->makeNeatArray($content['query']);
  36. endif;
  37. ?>
  38. <h4>Cookie</h4>
  39. <?php if (isset($content['cookie'])): ?>
  40. <?php echo $this->Toolbar->makeNeatArray($content['cookie']); ?>
  41. <?php else: ?>
  42. <p class="info">To view Cookies, add CookieComponent to Controller</p>
  43. <?php endif; ?>
  44. <h4><?php echo __d('debug_kit', 'Current Route') ?></h4>
  45. <?php echo $this->Toolbar->makeNeatArray($content['currentRoute']);