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
6e851e95
Commit
6e851e95
authored
Jul 26, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorganized RequestPanel.
parent
e96ef1f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
9 deletions
+40
-9
RequestPanel.php
framework/yii/debug/panels/RequestPanel.php
+28
-0
view.php
framework/yii/debug/views/default/view.php
+12
-9
No files found.
framework/yii/debug/panels/RequestPanel.php
View file @
6e851e95
...
...
@@ -9,6 +9,7 @@ namespace yii\debug\panels;
use
Yii
;
use
yii\base\InlineAction
;
use
yii\bootstrap\Tabs
;
use
yii\debug\Panel
;
use
yii\helpers\Html
;
...
...
@@ -53,6 +54,33 @@ EOD;
'Action'
=>
$this
->
data
[
'action'
],
'Parameters'
=>
$this
->
data
[
'actionParams'
],
);
return
Tabs
::
widget
(
array
(
'items'
=>
array
(
array
(
'label'
=>
'Parameters'
,
'content'
=>
$this
->
renderData
(
'Routing'
,
$data
)
.
$this
->
renderData
(
'$_GET'
,
$this
->
data
[
'GET'
])
.
$this
->
renderData
(
'$_POST'
,
$this
->
data
[
'POST'
])
.
$this
->
renderData
(
'$_FILES'
,
$this
->
data
[
'POST'
])
.
$this
->
renderData
(
'$_COOKIE'
,
$this
->
data
[
'COOKIE'
]),
'active'
=>
true
,
),
array
(
'label'
=>
'Headers'
,
'content'
=>
$this
->
renderData
(
'Request Headers'
,
$this
->
data
[
'requestHeaders'
])
.
$this
->
renderData
(
'Response Headers'
,
$this
->
data
[
'responseHeaders'
]),
),
array
(
'label'
=>
'Session'
,
'content'
=>
$this
->
renderData
(
'$_SESSION'
,
$this
->
data
[
'SESSION'
])
.
$this
->
renderData
(
'Flashes'
,
$this
->
data
[
'flashes'
]),
),
array
(
'label'
=>
'$_SERVER'
,
'content'
=>
$this
->
renderData
(
'$_SERVER'
,
$this
->
data
[
'SERVER'
]),
),
),
));
return
"<h1>Request Information</h1>
\n
"
.
$this
->
renderData
(
'Routing'
,
$data
)
.
"
\n
"
.
$this
->
renderData
(
'Flashes'
,
$this
->
data
[
'flashes'
])
.
"
\n
"
...
...
framework/yii/debug/views/default/view.php
View file @
6e851e95
<?php
use
yii\bootstrap\AffixAsset
;
use
yii\bootstrap\DropdownAsset
;
use
yii\helpers\Html
;
/**
...
...
@@ -12,7 +14,8 @@ use yii\helpers\Html;
*/
$this
->
title
=
'Yii Debugger'
;
yii\bootstrap\DropdownAsset
::
register
(
$this
);
DropdownAsset
::
register
(
$this
);
AffixAsset
::
register
(
$this
);
?>
<div
class=
"default-view"
>
<div
class=
"navbar"
>
...
...
@@ -31,14 +34,14 @@ yii\bootstrap\DropdownAsset::register($this);
<div
class=
"container-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"span2"
>
<ul
class=
"nav nav-tabs nav-list nav-stacked"
>
<?php
foreach
(
$panels
as
$id
=>
$panel
)
{
$link
=
Html
::
a
(
Html
::
encode
(
$panel
->
getName
()),
array
(
'view'
,
'tag'
=>
$tag
,
'panel'
=>
$id
));
echo
Html
::
tag
(
'li'
,
$link
,
array
(
'class'
=>
$panel
===
$activePanel
?
'active'
:
null
));
}
?>
</ul>
<ul
class=
"nav nav-tabs nav-list nav-stacked"
>
<?php
foreach
(
$panels
as
$id
=>
$panel
)
{
$link
=
Html
::
a
(
Html
::
encode
(
$panel
->
getName
()),
array
(
'view'
,
'tag'
=>
$tag
,
'panel'
=>
$id
));
echo
Html
::
tag
(
'li'
,
$link
,
array
(
'class'
=>
$panel
===
$activePanel
?
'active'
:
null
));
}
?>
</ul>
</div>
<!--/span-->
<div
class=
"span10"
>
<div
class=
"meta alert alert-info"
>
...
...
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