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
41385ed4
Commit
41385ed4
authored
Mar 12, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup.
parent
7eabaeca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
38 deletions
+2
-38
DefaultController.php
extensions/gii/controllers/DefaultController.php
+0
-37
view.php
extensions/gii/views/default/view.php
+1
-1
files.php
extensions/gii/views/default/view/files.php
+1
-0
No files found.
extensions/gii/controllers/DefaultController.php
View file @
41385ed4
...
@@ -108,43 +108,6 @@ class DefaultController extends Controller
...
@@ -108,43 +108,6 @@ class DefaultController extends Controller
}
}
/**
/**
* @inheritdoc
*/
public
function
createUrl
(
$params
)
{
$params
=
(
array
)
$params
;
if
(
!
isset
(
$params
[
'id'
])
&&
$this
->
generator
!==
null
)
{
foreach
(
$this
->
module
->
generators
as
$id
=>
$generator
)
{
if
(
$generator
===
$this
->
generator
)
{
$params
[
'id'
]
=
$id
;
break
;
}
}
}
return
parent
::
createUrl
(
$params
);
}
/**
* Creates URL for an aciton
*
* @param string $name name of the action
* @param array $params the parameters (name-value pairs) to be included in the generated URL
* @return string the created relative URL
*/
public
function
createActionUrl
(
$name
,
$params
=
[])
{
foreach
(
$this
->
module
->
generators
as
$id
=>
$generator
)
{
if
(
$generator
===
$this
->
generator
)
{
$params
[
'id'
]
=
$id
;
break
;
}
}
$params
[
'name'
]
=
$name
;
$params
[
0
]
=
'action'
;
return
parent
::
createUrl
(
$params
);
}
/**
* Loads the generator with the specified ID.
* Loads the generator with the specified ID.
* @param string $id the ID of the generator to be loaded.
* @param string $id the ID of the generator to be loaded.
* @return \yii\gii\Generator the loaded generator
* @return \yii\gii\Generator the loaded generator
...
...
extensions/gii/views/default/view.php
View file @
41385ed4
...
@@ -8,7 +8,7 @@ use yii\gii\CodeFile;
...
@@ -8,7 +8,7 @@ use yii\gii\CodeFile;
/**
/**
* @var yii\web\View $this
* @var yii\web\View $this
* @var yii\gii\Generator $generator
* @var yii\gii\Generator $generator
* @var string $id
* @var string $id
panel ID
* @var yii\widgets\ActiveForm $form
* @var yii\widgets\ActiveForm $form
* @var string $results
* @var string $results
* @var boolean $hasError
* @var boolean $hasError
...
...
extensions/gii/views/default/view/files.php
View file @
41385ed4
...
@@ -8,6 +8,7 @@ use yii\gii\CodeFile;
...
@@ -8,6 +8,7 @@ use yii\gii\CodeFile;
* @var \yii\gii\Generator $generator
* @var \yii\gii\Generator $generator
* @var CodeFile[] $files
* @var CodeFile[] $files
* @var array $answers
* @var array $answers
* @var string $id panel ID
*/
*/
?>
?>
<div
class=
"default-view-files"
>
<div
class=
"default-view-files"
>
...
...
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