Yii v2 snippet guide III

Comparing #12 with #13

Revision #13 was created by rackycz rackycz on Jan 21, 2021, 2:39:26 PM.

Translations

Content

[...]
\Yii::$app->language = $_SESSION['sys_lang'];
return true;
}
}
```
If you want to have the sys_lang in the URL, right be
hingd the domain name, following URL rules can be created in config/web.php, section components:

```php
'components' => [
// ...
'urlManager' => [
[...]