Answer the question
In order to leave comments, you need to log in
YII2 step-by-step registration, how best to implement?
Good evening.
There was a need to make a step-by-step registration on the site.
Now everything is implemented in a simple way, entered email, pressed a button, received a notification by mail with a confirmation link, login and a generated password.
You need to do this:
1 step. The user enters some text into the text area, clicks "submit".
2 step. Enters email, password, confirms the password, clicks "registration".
3 step. After that, it is transferred to your personal account (authorized), and a letter with a confirmation link is sent to the mail.
I'm interested in how best to organize the execution of the first two steps.
Do with page reload? Then what is the best way to save the data from the previous step?
Or using jquery to scroll the form, do ajax validation?
Who will advise what?
If it doesn't make it difficult, then share links to examples of such an implementation.
Thanks to those who responded.
Answer the question
In order to leave comments, you need to log in
public function actionStepOne(){}
public function actionStepTwo(){}
public function actionStepThree(){}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question