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
d4c3c356
Commit
d4c3c356
authored
Feb 07, 2014
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added panels position
parent
a872d605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Module.php
extensions/debug/Module.php
+13
-1
No files found.
extensions/debug/Module.php
View file @
d4c3c356
...
...
@@ -42,6 +42,10 @@ class Module extends \yii\base\Module
*/
public
$panels
=
[];
/**
* @var string postion of the custom configured panels 'begin' or 'end'
*/
public
$panelsPosition
=
'end'
;
/**
* @var string the directory storing the debugger data files. This can be specified using a path alias.
*/
public
$dataPath
=
'@runtime/debug'
;
...
...
@@ -64,7 +68,15 @@ class Module extends \yii\base\Module
Yii
::
$app
->
getView
()
->
on
(
View
::
EVENT_END_BODY
,
[
$this
,
'renderToolbar'
]);
});
$this
->
panels
=
ArrayHelper
::
merge
(
$this
->
corePanels
(),
$this
->
panels
);
switch
(
$this
->
panelsPosition
)
{
case
'begin'
:
$this
->
panels
=
ArrayHelper
::
merge
(
$this
->
panels
,
$this
->
corePanels
());
break
;
case
'end'
:
default
:
$this
->
panels
=
ArrayHelper
::
merge
(
$this
->
corePanels
(),
$this
->
panels
);
break
;
}
foreach
(
$this
->
panels
as
$id
=>
$config
)
{
$config
[
'module'
]
=
$this
;
$config
[
'id'
]
=
$id
;
...
...
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