Difference between #61 and #62 of
Yii v2 snippet guide

Revision #62 has been created by rackycz on Sep 20, 2019, 1:53:38 PM with the memo:

i18n
« previous (#61) next (#63) »

Changes

Title unchanged

Yii v2 for beginners

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
'New password' => 'Nové heslo',
];
?>
```

Now you can open the page for adding a new user and you will see than so far nothing changed :-)
 
 
- [http://localhost/basic-/web/index.php?r=user%2Fcreate](http://localhost/basic-/web/index.php?r=user%2Fcreate)
 
 
We must change the language ... For now let's do it in a primitive way. Open the userController, find actionCreate() and paste this code:
 
 
```php
 
Yii::$app->language = "cs-CZ"; // use your language
 
```
 
 
Switching languages + session + dropdown in the top menu
---
... text ...

Access rights
---
[...]
7 0
4 followers
Viewed: 275 342 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history