Commit bb7a6872 by Qiang Xue

Merge pull request #2401 from schmunk42/feature/toolbar-ui-3

Feature/toolbar ui 3
parents 65a8eae7 e1c30eab
......@@ -31,13 +31,14 @@ $this->title = 'Yii Debugger';
<div class="container">
<div class="row">
<h1>Available Debug Data</h1>
<?php
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
if (isset($this->context->module->panels['db']) && isset($this->context->module->panels['request'])) {
echo " <h1>Available Debug Data</h1>";
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
echo GridView::widget([
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'rowOptions' => function ($model, $key, $index, $grid) use ($searchModel) {
......@@ -105,7 +106,13 @@ echo GridView::widget([
'label' => 'Status code'
],
],
]); ?>
]);
} else {
echo "<div class='alert alert-warning'>No data available. Panel <code>db</code> or <code>request</code> not found.</div>";
}
?>
</div>
</div>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
?>
<h1>Database Queries</h1>
......
......@@ -2,6 +2,7 @@
use yii\helpers\Html;
use yii\grid\GridView;
use yii\log\Logger;
?>
<h1>Log Messages</h1>
<?php
......
<?php
use yii\log\Target;
use yii\log\Logger;
?>
<?php
......
......@@ -5,6 +5,8 @@ use yii\bootstrap\Tabs;
* @var yii\debug\panels\RequestPanel $panel
*/
echo "<h1>Request</h1>";
echo Tabs::widget([
'items' => [
[
......
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