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
6f4e2c9b
Commit
6f4e2c9b
authored
Jul 21, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #647
parent
b02f01f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
UrlManager.php
framework/yii/web/UrlManager.php
+1
-1
UrlManagerTest.php
tests/unit/framework/web/UrlManagerTest.php
+1
-0
No files found.
framework/yii/web/UrlManager.php
View file @
6f4e2c9b
...
...
@@ -82,7 +82,7 @@ class UrlManager extends Component
* @var boolean whether to show entry script name in the constructed URL. Defaults to true.
* This property is used only if [[enablePrettyUrl]] is true.
*/
public
$showScriptName
=
fals
e
;
public
$showScriptName
=
tru
e
;
/**
* @var string the GET variable name for route. This property is used only if [[enablePrettyUrl]] is false.
*/
...
...
tests/unit/framework/web/UrlManagerTest.php
View file @
6f4e2c9b
...
...
@@ -262,6 +262,7 @@ class UrlManagerTest extends TestCase
// pretty URL rules
$manager
=
new
UrlManager
(
array
(
'enablePrettyUrl'
=>
true
,
'showScriptName'
=>
false
,
'cache'
=>
null
,
'rules'
=>
array
(
'PUT,POST post/<id>/<title>'
=>
'post/create'
,
...
...
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