detail.php 1.08 KB
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7
<?php
use yii\helpers\Html;

/**
 * @var yii\debug\panels\ConfigPanel $panel
 */
$extensions = $panel->getExtensions();
8 9 10
?>
<h1>Configuration</h1>
<?php
Qiang Xue committed
11 12 13 14 15 16 17 18 19
echo $this->render('panels/config/table', [
	'caption' => 'Application Configuration',
	'values' => [
		'Yii Version' => $panel->data['application']['yii'],
		'Application Name' => $panel->data['application']['name'],
		'Environment' => $panel->data['application']['env'],
		'Debug Mode' => $panel->data['application']['debug'] ? 'Yes' : 'No',
	],
]);
20 21

if (!empty($extensions)) {
Qiang Xue committed
22 23 24 25
	echo $this->render('panels/config/table', [
		'caption' => 'Installed Extensions',
		'values' => $extensions,
	]);
26 27
}

Qiang Xue committed
28 29 30 31 32 33 34 35 36
echo $this->render('panels/config/table', [
	'caption' => 'PHP Configuration',
	'values' => [
		'PHP Version' => $panel->data['php']['version'],
		'Xdebug' => $panel->data['php']['xdebug'] ? 'Enabled' : 'Disabled',
		'APC' => $panel->data['php']['apc'] ? 'Enabled' : 'Disabled',
		'Memcache' => $panel->data['php']['memcache'] ? 'Enabled' : 'Disabled',
	],
]);
37
?>
Qiang Xue committed
38
<div><?= Html::a('Show phpinfo() »', ['phpinfo'], ['class' => 'btn btn-primary']) ?></div>