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
9867ffb6
Commit
9867ffb6
authored
Nov 09, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added display of installed extension to debug panel.
parent
b965d4ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ConfigPanel.php
extensions/debug/panels/ConfigPanel.php
+14
-0
No files found.
extensions/debug/panels/ConfigPanel.php
View file @
9867ffb6
...
@@ -64,6 +64,7 @@ EOD;
...
@@ -64,6 +64,7 @@ EOD;
return
"<h1>Configuration</h1>
\n
"
return
"<h1>Configuration</h1>
\n
"
.
$this
->
renderData
(
'Application Configuration'
,
$app
)
.
"
\n
"
.
$this
->
renderData
(
'Application Configuration'
,
$app
)
.
"
\n
"
.
$this
->
renderData
(
'PHP Configuration'
,
$php
)
.
"
\n
"
.
$this
->
renderData
(
'PHP Configuration'
,
$php
)
.
"
\n
"
.
$this
->
renderExtensions
()
.
$this
->
getPhpInfo
();
.
$this
->
getPhpInfo
();
}
}
...
@@ -93,6 +94,18 @@ $rows
...
@@ -93,6 +94,18 @@ $rows
EOD;
EOD;
}
}
protected
function
renderExtensions
()
{
if
(
empty
(
$this
->
data
[
'extensions'
]))
{
return
''
;
}
$data
=
[];
foreach
(
$this
->
data
[
'extensions'
]
as
$extension
)
{
$data
[
$extension
[
'name'
]]
=
$data
[
'version'
];
}
return
$this
->
renderData
(
'Extensions'
,
$data
)
.
"
\n
"
;
}
public
function
save
()
public
function
save
()
{
{
return
[
return
[
...
@@ -110,6 +123,7 @@ EOD;
...
@@ -110,6 +123,7 @@ EOD;
'apc'
=>
extension_loaded
(
'apc'
),
'apc'
=>
extension_loaded
(
'apc'
),
'memcache'
=>
extension_loaded
(
'memcache'
),
'memcache'
=>
extension_loaded
(
'memcache'
),
],
],
'extensions'
=>
Yii
::
$app
->
extensions
,
];
];
}
}
}
}
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