Browse Source

Fixes #647

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
6f4e2c9b3c
  1. 2
      framework/yii/web/UrlManager.php
  2. 1
      tests/unit/framework/web/UrlManagerTest.php

2
framework/yii/web/UrlManager.php

@ -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 = false;
public $showScriptName = true;
/**
* @var string the GET variable name for route. This property is used only if [[enablePrettyUrl]] is false.
*/

1
tests/unit/framework/web/UrlManagerTest.php

@ -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',

Loading…
Cancel
Save