Revision #50 has been created by rackycz on Sep 20, 2019, 1:04:55 PM with the memo:
edit
« previous (#49) next (#51) »
Changes
Title
unchanged
Yii v2 for beginners
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,beginner,yii2
Content
changed
[...]
}
```
Now you can also create CRUD = Create Read Update Delete = views and controller. On the GII page enter following values:
- Model Class = app\models\User[...]
- Again enable i18n
Now you can edit userts on this URL: [http://localhost/basic/web/index.php?r=user](http://localhost/basic/web/index.php?r=user)
... but it is not all. Now you should also modify view files so that correct inputs are displayed!
Open folder views\user and do following:
- \_form.php - rename input **password** to **password_new** then duplicate it and rename to **password_new_repeat**. Remove **authKey**.
- \_search.php - remove **password** and **authKey**.
- index.php - remove **password** and **authKey**.
- view.php - remove **password** and **authKey**.
i18n translations + Session
---
... text ...[...]