debug toolbar refactoring.

This commit is contained in:
Qiang Xue
2013-07-06 08:05:02 -04:00
parent b6ffa7c93e
commit 840a84db5c
6 changed files with 15 additions and 36 deletions

View File

@@ -24,12 +24,10 @@ class ConfigPanel extends Panel
public function getSummary()
{
$link = Html::a('more details', array('index', 'tag' => $this->data['tag']));
return <<<EOD
<div class="yii-debug-toolbar-block">
PHP: {$this->data['phpVersion']},
Yii: {$this->data['phpVersion']},
$link
Yii: {$this->data['phpVersion']}
</div>
EOD;
}
@@ -42,7 +40,6 @@ EOD;
public function save()
{
return array(
'tag' => Yii::$app->getLog()->getTag(),
'phpVersion' => PHP_VERSION,
'yiiVersion' => Yii::getVersion(),
);