Yii v2 snippet guide

Comparing #49 with #50

Revision #50 was created by rackycz rackycz on Sep 20, 2019, 1:04:55 PM.

edit

Content

[...]
}

```

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 user
ts 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 ...
[...]