Comparing
#81 with
#82
Revision #82 was created by
rackycz on Sep 20, 2019, 3:30:49 PM.
edit
Content
[...]
The setLang action looks like this:
```php
public function actionSetLang($langID = "") {
$allowedLanguages = Yii::$app->params["allowedLanguages"];
if ($langID && trim($langID) !== "" && in_array
_key_exists(trim($langID
), $allowedLanguages)) {
Yii::$app->session->set('langID', $langID);
}
return $this->redirect(['site/index']);
}
```[...]