detail.php 1.08 KB
Newer Older
Qiang Xue committed
1 2 3 4 5
<?php
/**
 * @var yii\debug\panels\ConfigPanel $panel
 */
$extensions = $panel->getExtensions();
6 7
?>
<h1>Configuration</h1>
8

9
<?php
Qiang Xue committed
10
echo $this->render('panels/config/table', [
11 12 13 14 15 16 17
    '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',
    ],
Qiang Xue committed
18
]);
19 20

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

Qiang Xue committed
27
echo $this->render('panels/config/table', [
28 29 30 31 32 33 34
    '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',
    ],
Qiang Xue committed
35
]);
36 37

echo $panel->getPhpInfo();