Commit 31383fe4 by Mark

detailed view profile panel fix

parent 5095401a
<?php <?php
use yii\grid\GridView; use yii\grid\GridView;
use yii\helpers\Html;
?> ?>
<h1>Performance Profiling</h1> <h1>Performance Profiling</h1>
<p>Total processing time: <b><?php echo $time; ?></b>; Peak memory: <b><?php echo $memory; ?></b>.</p> <p>Total processing time: <b><?php echo $time; ?></b>; Peak memory: <b><?php echo $memory; ?></b>.</p>
...@@ -21,8 +22,9 @@ echo GridView::widget([ ...@@ -21,8 +22,9 @@ echo GridView::widget([
[ [
'attribute' => 'info', 'attribute' => 'info',
'value' => function ($data) { 'value' => function ($data) {
return str_repeat('<span class="indent">→</span>', $data['level']) . $data['info']; return str_repeat('<span class="indent">→</span>', $data['level']) . Html::encode($data['info']);
}, },
'formtat' => 'html',
'options' => [ 'options' => [
'width' => '60%', 'width' => '60%',
], ],
......
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