diff --git a/docs/guide/structure-modules.md b/docs/guide/structure-modules.md index fbb2b3a9b4..1e7a23db5c 100644 --- a/docs/guide/structure-modules.md +++ b/docs/guide/structure-modules.md @@ -176,12 +176,12 @@ only contains the module ID, then the [[yii\base\Module::defaultRoute]] property will determine which controller/action should be used. This means a route `forum` would represent the `default` controller in the `forum` module. -URL manager routes should be added before [[yii\web\UrlManager::parseRequest()]] is fired. That means doing it -in module's `init()` won't work because module will be initialized when routes were already processed. Thus, routes +The URL manager rules for the modules should be added before [[yii\web\UrlManager::parseRequest()]] is fired. That means doing it +in module's `init()` won't work because module will be initialized when routes were already processed. Thus, the rules should be added at [bootstrap stage](structure-extensions.md#bootstrapping-classes). It is a also a good practice to wrap module's URL rules with [[\yii\web\GroupUrlRule]]. -In case module is used to [version API](rest-versioning.md), routes should be added directly in `urlManager` +In case a module is used to [version API](rest-versioning.md), its URL rules should be added directly in `urlManager` section of the application config. diff --git a/docs/guide/test-fixtures.md b/docs/guide/test-fixtures.md index 9000442e99..fdb7c893ab 100644 --- a/docs/guide/test-fixtures.md +++ b/docs/guide/test-fixtures.md @@ -308,9 +308,9 @@ Same command options like: `namespace`, `globalFixtures` also can be applied to ### Configure Command Globally -While command line options allow us to configure the migration command +While command line options allow us to configure the fixture command on-the-fly, sometimes we may want to configure the command once for all. For example you can configure -different migration path as follows: +different fixture path as follows: ``` 'controllerMap' => [