mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 22:48:19 +08:00
debug toolbar WIP
This commit is contained in:
1
framework/yii/debug/views/default/index.php
Normal file
1
framework/yii/debug/views/default/index.php
Normal file
@@ -0,0 +1 @@
|
||||
here we are
|
||||
@@ -19,21 +19,22 @@ echo Html::style("
|
||||
margin: 0 10px;
|
||||
");
|
||||
?>
|
||||
<div id="yii-debug-toolbar">
|
||||
<div class="yii-debug-toolbar-block">
|
||||
<?php echo Html::a('more details', array('index', 'tag' => $tag)); ?>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
<div class="yii-debug-toolbar-block">
|
||||
Peak memory: <?php echo sprintf('%.2fMB', $memory / 1048576); ?>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
Time spent: <?php echo sprintf('%.3fs', $time); ?>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
Peak memory: <?php echo sprintf('%.2fMB', $memory / 1048576); ?>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
Time spent: <?php echo sprintf('%.3fs', $time); ?>
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
</div>
|
||||
|
||||
<div class="yii-debug-toolbar-block">
|
||||
</div>
|
||||
|
||||
|
||||
21
framework/yii/debug/views/layouts/main.php
Normal file
21
framework/yii/debug/views/layouts/main.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \yii\base\View $this
|
||||
* @var string $content
|
||||
*/
|
||||
use yii\helpers\Html;
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<?php $this->beginPage(); ?>
|
||||
<head>
|
||||
<title><?php echo Html::encode($this->title); ?></title>
|
||||
<?php $this->head(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php $this->beginBody(); ?>
|
||||
<?php echo $content; ?>
|
||||
<?php $this->endBody(); ?>
|
||||
</body>
|
||||
<?php $this->endPage(); ?>
|
||||
</html>
|
||||
Reference in New Issue
Block a user