Yii v2 snippet guide

Comparing #51 with #52

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

edit

Content

[...]
- \_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->scenario = User::SCENARIO_CREATE; // the new scenario!
// ...
```
    
 


i18n translations + Session
---
... text ...
[...]