Yii v2 snippet guide

Comparing #50 with #51

Revision #51 was created by rackycz rackycz on Sep 20, 2019, 1:12:00 PM.

edit

Content

[...]
- \_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**.

Plus do not forget to use the new scenario in UserController->actionCreate() like this:
 
```php
 
public function actionCreate()
 
{
 
  $model = new User();
 
  $model->scenario = User::SCENARIO_CREATE; // the new scenario!
 
  // ...
 
```    
 

i18n translations + Session
---
... text ...

Access rights
[...]