public function actionIndex(){ $model= new CompanyRegistration(); if(Auction::$app->request->isPost){ $model->load(Auction::$app->request->post()); $model->SaveCompany(); } else { $modelAttributes = ArrayHelper::merge($this->loadModel()->getAttributes(), $this->loadModel()->company->attributes); $model->setAttributes($modelAttributes); } return $this->render('//company/edit',['model' => $model]); }