Esempio n. 1
0
 public function actionSignupCompany()
 {
     $model = new SignupForm(['scenario' => 'company']);
     if ($model->load(Yii::$app->request->post())) {
         if ($user = $model->signupCompany()) {
             if (Yii::$app->getUser()->login($user)) {
                 return $this->goHome();
             }
         }
     }
     return $this->render('signup-company', ['model' => $model]);
 }