fixed typo. [skip ci]

This commit is contained in:
Qiang Xue
2014-04-17 23:33:13 -04:00
parent 2fb70cf00b
commit 707e4e810e
2 changed files with 9 additions and 13 deletions

View File

@@ -118,12 +118,10 @@ class Module extends \yii\base\Module implements BootstrapInterface
$app->getView()->on(View::EVENT_END_BODY, [$this, 'renderToolbar']);
});
$app->getUrlManager()->addRules(
[
$this->id => $this->id,
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
]
);
$app->getUrlManager()->addRules([
$this->id => $this->id,
$this->id . '/<controller:\w+>/<action:\w+>' => $this->id . '/<controller>/<action>',
], false);
}
/**