Difference between #50 and #51 of
Yii v2 snippet guide

Revision #51 has been created by rackycz on Sep 20, 2019, 1:12:00 PM with the memo:

edit
« previous (#50) next (#52) »

Changes

Title unchanged

Yii v2 for beginners

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
- \_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
[...]
7 0
4 followers
Viewed: 255 286 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: 5 months ago
Update Article

Revisions

View all history