Using VarDumper::dumpAsString() instead var_export() in the Request panel

This commit is contained in:
djagya
2014-01-16 13:29:52 +01:00
parent 90af64536f
commit a33907f6e2
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<?php
use yii\helpers\Html;
use yii\helpers\VarDumper;
/**
* @var string $caption
@@ -25,7 +26,7 @@ use yii\helpers\Html;
<?php foreach($values as $name => $value): ?>
<tr>
<th style="width: 200px;"><?= Html::encode($name) ?></th>
<td><?= htmlspecialchars(var_export($value, true), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
<td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
</tr>
<?php endforeach; ?>
</tbody>