It’s posiible set params to view only once ? Because now when I set something in Controllet like below
return $this->render('update', [
'model' => $model,
'param1'=>$param1,
'param2'=>$param2
]);
I must set the same in my view when I would like use this param for example in common _form file
<?= $this->render('_form', [
'param1'=>$param1,
'param2'=>param2,
'model' => $model,
]) ?>