detail.php 1.48 KB
Newer Older
1 2 3
<?php 
use yii\bootstrap\Tabs;

Qiang Xue committed
4 5 6 7
/**
 * @var yii\debug\panels\RequestPanel $panel
 */

8 9 10 11
echo Tabs::widget([
	'items' => [
		[
			'label' => 'Parameters',
12 13 14 15 16
			'content' => $this->render('panels/request/table', ['caption' => 'Routing', 'values' => ['Route' => $panel->data['route'], 'Action' => $panel->data['action'], 'Parameters' => $panel->data['actionParams']]])
				. $this->render('panels/request/table', ['caption' => '$_GET', 'values' => $panel->data['GET']])
				. $this->render('panels/request/table', ['caption' => '$_POST', 'values' => $panel->data['POST']])
				. $this->render('panels/request/table', ['caption' => '$_FILES', 'values' => $panel->data['FILES']])
				. $this->render('panels/request/table', ['caption' => '$_COOKIE', 'values' => $panel->data['COOKIE']]),
17 18 19 20
			'active' => true,
		],
		[
			'label' => 'Headers',
21 22
			'content' => $this->render('panels/request/table', ['caption' => 'Request Headers', 'values' => $panel->data['requestHeaders']])
				. $this->render('panels/request/table', ['caption' => 'Response Headers', 'values' => $panel->data['responseHeaders']])
23 24 25
		],
		[
			'label' => 'Session',
26 27
			'content' => $this->render('panels/request/table', ['caption' => '$_SESSION', 'values' => $panel->data['SESSION']])
				. $this->render('panels/request/table', ['caption' => 'Flashes', 'values' => $panel->data['flashes']])
28 29 30
		],
		[
			'label' => '$_SERVER',
Qiang Xue committed
31
			'content' => $this->render('panels/request/table', ['caption' => '$_SERVER', 'values' => $panel->data['SERVER']]),
32 33 34
		],
	],
]);
Qiang Xue committed
35
?>