frontend/controllers/UserController.php
/**
     * Signup user from popup
     * @return mixed
     */
Signup user from popup
@return mixed
Signup user from popup @return mixed
public function actionSignup()
    {
        $model = new SignupForm;
        if (Yii::$app->request->isAjax && $model->load(Yii::$app->request->post())) {
            Yii::$app->response->format = Response::FORMAT_JSON;
            return ActiveForm::validate($model);
        }
        $ret = $this->methodSignup($model);
        return $this->redirect($ret);
    }
public function actionSignup ( ) { $ model = new SignupForm ; if ( Yii :: $ app -> request -> isAjax && $ model -> load ( Yii :: $ app -> request -> post ( ) ) ) { Yii :: $ app -> response -> format = Response :: FORMAT_JSON ; return ActiveForm :: validate ( $ model ) ; } $ ret = $ this -> methodSignup ( $ model ) ; return $ this -> redirect ( $ ret ) ; }
Signup user from popup
 @return mixed
Signup user from popup @return mixed