Skip to content

Commit

Permalink
Update app-module-urlrules.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 27, 2019
1 parent 899261e commit 62f9dd5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/guide/app-module-urlrules.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ In order to define the url rules from the urlManager config scope, you can just
```php
'urlManager' => [
'rules' => [
'en/basket' => 'en/estore/basket/default',
'de/warenkorb' => 'de/estore/basket/default',
'fr/panier' => 'fr/estore/basek/default',
'basket' => 'en/estore/basket/default',
'warenkorb' => 'de/estore/basket/default',
'panier' => 'fr/estore/basek/default',
],
],
```

> When composition is enabled, it will take the correct route for the current language and prefix the pattern if enable in composition config.
To verify which composition language is used you can dump `Yii::$app->composition->language`. The {{luya\web\Composition}} component is taking care of LUYA multi language websites and is registered by default for all LUYA projects.

0 comments on commit 62f9dd5

Please sign in to comment.