Commit 6f4e2c9b by Qiang Xue

Fixes #647

parent b02f01f6
......@@ -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.
*/
......
......@@ -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',
......
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