id); if (!$form) { return 'Form is not found'; } $className = 'DynaForm' . $this->id; $classPath = '\\common\\modules\\forms\\runtime\\' . $className; $dynaForm = new $classPath(); return $this->renderFile(\Yii::getAlias('@common/modules/forms/runtime/' . 'DynaView' . $this->id . '.php'), ['model' => $dynaForm, 'form_entity' => $form]); } }