You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.7KB

  1. <?php
  2. /* @var $panel yii\debug\panels\RequestPanel */
  3. use yii\bootstrap\Tabs;
  4. echo "<h1>Request</h1>";
  5. echo Tabs::widget([
  6. 'items' => [
  7. [
  8. 'label' => 'Parameters',
  9. 'content' => $this->render('table', ['caption' => 'Routing', 'values' => ['Route' => $panel->data['route'], 'Action' => $panel->data['action'], 'Parameters' => $panel->data['actionParams']]])
  10. . $this->render('table', ['caption' => '$_GET', 'values' => $panel->data['GET']])
  11. . $this->render('table', ['caption' => '$_POST', 'values' => $panel->data['POST']])
  12. . $this->render('table', ['caption' => '$_FILES', 'values' => $panel->data['FILES']])
  13. . $this->render('table', ['caption' => '$_COOKIE', 'values' => $panel->data['COOKIE']])
  14. . $this->render('table', ['caption' => 'Request Body', 'values' => $panel->data['requestBody']]),
  15. 'active' => true,
  16. ],
  17. [
  18. 'label' => 'Headers',
  19. 'content' => $this->render('table', ['caption' => 'Request Headers', 'values' => $panel->data['requestHeaders']])
  20. . $this->render('table', ['caption' => 'Response Headers', 'values' => $panel->data['responseHeaders']])
  21. ],
  22. [
  23. 'label' => 'Session',
  24. 'content' => $this->render('table', ['caption' => '$_SESSION', 'values' => $panel->data['SESSION']])
  25. . $this->render('table', ['caption' => 'Flashes', 'values' => $panel->data['flashes']])
  26. ],
  27. [
  28. 'label' => '$_SERVER',
  29. 'content' => $this->render('table', ['caption' => '$_SERVER', 'values' => $panel->data['SERVER']]),
  30. ],
  31. ],
  32. ]);