Render Param

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,

    ]) ?>

No, you must pass the parameters to your update.php and from there to your _form.php.

That’s how it is.