Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3c05ee51
Commit
3c05ee51
authored
Jan 16, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2001 from djagya/1783-using-VarDumper-instead-var_export
Using VarDumper::dumpAsString() instead var_export() in the Request pane...
parents
90af6453
a33907f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
extensions/debug/CHANGELOG.md
+1
-0
table.php
extensions/debug/views/default/panels/request/table.php
+2
-1
No files found.
extensions/debug/CHANGELOG.md
View file @
3c05ee51
...
@@ -4,6 +4,7 @@ Yii Framework 2 debug extension Change Log
...
@@ -4,6 +4,7 @@ Yii Framework 2 debug extension Change Log
2.
0.0 beta under development
2.
0.0 beta under development
----------------------------
----------------------------
-
Bug #1783: Using VarDumper::dumpAsString() instead var_export(), because var_export() does not handle circular references. (djagya)
-
Bug #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled (qiangxue)
-
Bug #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled (qiangxue)
-
Bug #1747: Fixed problems with displaying toolbar on small screens (cebe)
-
Bug #1747: Fixed problems with displaying toolbar on small screens (cebe)
-
Bug #1827: Debugger toolbar is loaded twice if an action is calling
`run()`
to execute another action (qiangxue)
-
Bug #1827: Debugger toolbar is loaded twice if an action is calling
`run()`
to execute another action (qiangxue)
...
...
extensions/debug/views/default/panels/request/table.php
View file @
3c05ee51
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\helpers\VarDumper
;
/**
/**
* @var string $caption
* @var string $caption
...
@@ -25,7 +26,7 @@ use yii\helpers\Html;
...
@@ -25,7 +26,7 @@ use yii\helpers\Html;
<?php
foreach
(
$values
as
$name
=>
$value
)
:
?>
<?php
foreach
(
$values
as
$name
=>
$value
)
:
?>
<tr>
<tr>
<th
style=
"width: 200px;"
>
<?=
Html
::
encode
(
$name
)
?>
</th>
<th
style=
"width: 200px;"
>
<?=
Html
::
encode
(
$name
)
?>
</th>
<td>
<?=
htmlspecialchars
(
var_export
(
$value
,
tr
ue
),
ENT_QUOTES
|
ENT_SUBSTITUTE
,
\Yii
::
$app
->
charset
,
true
)
?>
</td>
<td>
<?=
htmlspecialchars
(
VarDumper
::
dumpAsString
(
$val
ue
),
ENT_QUOTES
|
ENT_SUBSTITUTE
,
\Yii
::
$app
->
charset
,
true
)
?>
</td>
</tr>
</tr>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
</tbody>
</tbody>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment