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
78d321b2
Commit
78d321b2
authored
Jun 24, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4031 from SDKiller/patch-1
Http status codes are hardcoded in filter in debug
parents
a2858920
86797ef4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
CHANGELOG.md
extensions/debug/CHANGELOG.md
+1
-0
DefaultController.php
extensions/debug/controllers/DefaultController.php
+1
-0
index.php
extensions/debug/views/default/index.php
+10
-1
No files found.
extensions/debug/CHANGELOG.md
View file @
78d321b2
...
@@ -11,6 +11,7 @@ Yii Framework 2 debug extension Change Log
...
@@ -11,6 +11,7 @@ Yii Framework 2 debug extension Change Log
-
Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
-
Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
-
Enh #3108: Added
`yii\debug\Module::enableDebugLogs`
to disable logging debug logs by default (qiangxue)
-
Enh #3108: Added
`yii\debug\Module::enableDebugLogs`
to disable logging debug logs by default (qiangxue)
-
Enh #3810: Added "Latest" button on panels page (thiagotalma)
-
Enh #3810: Added "Latest" button on panels page (thiagotalma)
-
Enh #4031: Http status codes were hardcoded in filter (sdkiller)
2.
0.0-beta April 13, 2014
2.
0.0-beta April 13, 2014
-------------------------
-------------------------
...
...
extensions/debug/controllers/DefaultController.php
View file @
78d321b2
...
@@ -60,6 +60,7 @@ class DefaultController extends Controller
...
@@ -60,6 +60,7 @@ class DefaultController extends Controller
'panels'
=>
$this
->
module
->
panels
,
'panels'
=>
$this
->
module
->
panels
,
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'searchModel'
=>
$searchModel
,
'searchModel'
=>
$searchModel
,
'manifest'
=>
$this
->
getManifest
(),
]);
]);
}
}
...
...
extensions/debug/views/default/index.php
View file @
78d321b2
...
@@ -34,6 +34,15 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
...
@@ -34,6 +34,15 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
echo
" <h1>Available Debug Data</h1>"
;
echo
" <h1>Available Debug Data</h1>"
;
$timeFormatter
=
extension_loaded
(
'intl'
)
?
Yii
::
createObject
([
'class'
=>
'yii\i18n\Formatter'
])
:
Yii
::
$app
->
formatter
;
$timeFormatter
=
extension_loaded
(
'intl'
)
?
Yii
::
createObject
([
'class'
=>
'yii\i18n\Formatter'
])
:
Yii
::
$app
->
formatter
;
$codes
=
[];
foreach
(
$manifest
as
$tag
=>
$vals
)
{
if
(
!
empty
(
$vals
[
'statusCode'
]))
{
$codes
[]
=
$vals
[
'statusCode'
];
}
}
$codes
=
array_unique
(
$codes
,
SORT_NUMERIC
);
$statusCodes
=
(
!
empty
(
$codes
))
?
array_combine
(
$codes
,
$codes
)
:
true
;
echo
GridView
::
widget
([
echo
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
...
@@ -104,7 +113,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
...
@@ -104,7 +113,7 @@ if (isset($this->context->module->panels['db']) && isset($this->context->module-
],
],
[
[
'attribute'
=>
'statusCode'
,
'attribute'
=>
'statusCode'
,
'filter'
=>
[
200
=>
200
,
404
=>
404
,
403
=>
403
,
500
=>
500
]
,
'filter'
=>
$statusCodes
,
'label'
=>
'Status code'
'label'
=>
'Status code'
],
],
],
],
...
...
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