mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 00:20:44 +08:00
Merge pull request #2401 from schmunk42/feature/toolbar-ui-3
Feature/toolbar ui 3
This commit is contained in:
@@ -31,10 +31,11 @@ $this->title = 'Yii Debugger';
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h1>Available Debug Data</h1>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
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;
|
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
|
||||||
|
|
||||||
echo GridView::widget([
|
echo GridView::widget([
|
||||||
@@ -105,7 +106,13 @@ echo GridView::widget([
|
|||||||
'label' => 'Status code'
|
'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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\grid\GridView;
|
use yii\grid\GridView;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h1>Database Queries</h1>
|
<h1>Database Queries</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\grid\GridView;
|
use yii\grid\GridView;
|
||||||
use yii\log\Logger;
|
use yii\log\Logger;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h1>Log Messages</h1>
|
<h1>Log Messages</h1>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
use yii\log\Target;
|
use yii\log\Target;
|
||||||
use yii\log\Logger;
|
use yii\log\Logger;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ use yii\bootstrap\Tabs;
|
|||||||
* @var yii\debug\panels\RequestPanel $panel
|
* @var yii\debug\panels\RequestPanel $panel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
echo "<h1>Request</h1>";
|
||||||
|
|
||||||
echo Tabs::widget([
|
echo Tabs::widget([
|
||||||
'items' => [
|
'items' => [
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user