Commit 9867ffb6 by Qiang Xue

Added display of installed extension to debug panel.

parent b965d4ee
......@@ -64,6 +64,7 @@ EOD;
return "<h1>Configuration</h1>\n"
. $this->renderData('Application Configuration', $app) . "\n"
. $this->renderData('PHP Configuration', $php) . "\n"
. $this->renderExtensions()
. $this->getPhpInfo();
}
......@@ -93,6 +94,18 @@ $rows
EOD;
}
protected function renderExtensions()
{
if (empty($this->data['extensions'])) {
return '';
}
$data = [];
foreach ($this->data['extensions'] as $extension) {
$data[$extension['name']] = $data['version'];
}
return $this->renderData('Extensions', $data) . "\n";
}
public function save()
{
return [
......@@ -110,6 +123,7 @@ EOD;
'apc' => extension_loaded('apc'),
'memcache' => extension_loaded('memcache'),
],
'extensions' => Yii::$app->extensions,
];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment