Commit 6f4e2c9b by Qiang Xue

Fixes #647

parent b02f01f6
...@@ -82,7 +82,7 @@ class UrlManager extends Component ...@@ -82,7 +82,7 @@ class UrlManager extends Component
* @var boolean whether to show entry script name in the constructed URL. Defaults to true. * @var boolean whether to show entry script name in the constructed URL. Defaults to true.
* This property is used only if [[enablePrettyUrl]] is 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. * @var string the GET variable name for route. This property is used only if [[enablePrettyUrl]] is false.
*/ */
......
...@@ -262,6 +262,7 @@ class UrlManagerTest extends TestCase ...@@ -262,6 +262,7 @@ class UrlManagerTest extends TestCase
// pretty URL rules // pretty URL rules
$manager = new UrlManager(array( $manager = new UrlManager(array(
'enablePrettyUrl' => true, 'enablePrettyUrl' => true,
'showScriptName' => false,
'cache' => null, 'cache' => null,
'rules' => array( 'rules' => array(
'PUT,POST post/<id>/<title>' => 'post/create', 'PUT,POST post/<id>/<title>' => 'post/create',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment