renderAjax
:public function actionForm()
{
Yii::$app->response->format = Response::FORMAT_JSON;
// ...
return [
'status' => 'success',
'html' => $this->renderAjax('_form', [
// ...
])
];
}