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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
707e4e81
Commit
707e4e81
authored
Apr 17, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typo. [skip ci]
parent
2fb70cf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
Module.php
extensions/debug/Module.php
+2
-4
Module.php
extensions/gii/Module.php
+2
-4
No files found.
extensions/debug/Module.php
View file @
707e4e81
...
...
@@ -118,12 +118,10 @@ class Module extends \yii\base\Module implements BootstrapInterface
$app
->
getView
()
->
on
(
View
::
EVENT_END_BODY
,
[
$this
,
'renderToolbar'
]);
});
$app
->
getUrlManager
()
->
addRules
(
[
$app
->
getUrlManager
()
->
addRules
([
$this
->
id
=>
$this
->
id
,
$this
->
id
.
'/<controller:\w+>/<action:\w+>'
=>
$this
->
id
.
'/<controller>/<action>'
,
]
);
],
false
);
}
/**
...
...
extensions/gii/Module.php
View file @
707e4e81
...
...
@@ -84,13 +84,11 @@ class Module extends \yii\base\Module implements BootstrapInterface
*/
public
function
bootstrap
(
$app
)
{
$app
->
getUrlManager
()
->
addRules
(
[
$app
->
getUrlManager
()
->
addRules
([
$this
->
id
=>
$this
->
id
.
'/default/index'
,
$this
->
id
.
'/<id:\w+>'
=>
$this
->
id
.
'/default/view'
,
$this
->
id
.
'/<controller:\w+>/<action:\w+>'
=>
$this
->
id
.
'/<controller>/<action>'
,
]
);
],
false
);
}
/**
...
...
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