public function actionSaveform()
 {
     $form = new Forms();
     $result['Forms']['data'] = $_POST['jsondata'];
     $result['Forms']['user_id'] = Yii::$app->user->identity->id;
     if ($form->load($result) && $form->save(false)) {
         $this->redirect(Url::to('/bankrupt/default/step2'));
     } else {
         print_r($form->getErrors());
     }
 }
 public function actionDeal($id)
 {
     $deal = Forms::GetUserFormsById($id);
     return $this->render('deal', ['deal' => $deal['data']]);
 }