/**
  * Creates a new HostsSkillDetails model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new HostsSkillDetails();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->goHome();
     } else {
         return $this->render('create', ['model' => $model, 'host_id' => $_GET['host_id']]);
     }
 }
 /**
  * Creates a new HostsSkillDetails model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new HostsSkillDetails();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         $emailtempaltemodel = EmailTemplates::find()->where(['email_key' => 'host_signup'])->multilingual()->one();
         $admin_email = Configurations::find()->where(['key' => 'admin_email'])->one();
         Yii::$app->mailer->compose('hosts-html', ['model' => $model, 'emailtempaltemodel' => $emailtempaltemodel])->setFrom($admin_email->value)->setTo(Yii::$app->user->identity->email)->setCc($admin_email->value)->setSubject($emailtempaltemodel->subject)->send();
         return $this->redirect(['site/home']);
     } else {
         return $this->render('create', ['model' => $model, 'host_id' => $_GET['host_id']]);
     }
 }