mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 16:38:22 +08:00
Merge pull request #2401 from schmunk42/feature/toolbar-ui-3
Feature/toolbar ui 3
This commit is contained in:
@@ -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 GridView::widget([
|
||||
echo " <h1>Available Debug Data</h1>";
|
||||
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
|
||||
|
||||
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>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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' => [
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user