| @@ 38-44 (lines=7) @@ | ||
| 35 | 'class' => RenderAjaxAction::class, |
|
| 36 | 'view' => $this->view, |
|
| 37 | 'data' => $this->data, |
|
| 38 | 'params' => function ($action) { |
|
| 39 | $model = $action->controller->newModel(['scenario' => $action->scenario]); |
|
| 40 | return [ |
|
| 41 | 'model' => $model, |
|
| 42 | 'models' => [$model], |
|
| 43 | ]; |
|
| 44 | }, |
|
| 45 | ], |
|
| 46 | 'GET' => [ |
|
| 47 | 'class' => RenderAction::class, |
|
| @@ 50-56 (lines=7) @@ | ||
| 47 | 'class' => RenderAction::class, |
|
| 48 | 'view' => $this->view, |
|
| 49 | 'data' => $this->data, |
|
| 50 | 'params' => function ($action) { |
|
| 51 | $model = $action->controller->newModel(['scenario' => $action->scenario]); |
|
| 52 | return [ |
|
| 53 | 'model' => $model, |
|
| 54 | 'models' => [$model], |
|
| 55 | ]; |
|
| 56 | }, |
|
| 57 | ], |
|
| 58 | 'POST' => [ |
|
| 59 | 'save' => true, |
|