K
K
kolovsky_alexander2015-05-16 12:57:13
JavaScript
kolovsky_alexander, 2015-05-16 12:57:13

How to load forms via ajax in YII2?

Hello!
There is a registration form on the site, after successfully submitting the data, it is necessary to display the authorization form without reloading the page.
Please help me understand the principle of how, after processing a form, load another without reloading.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
matperez, 2015-05-16
@matperez

Google yii2 pjax submit. For example, here is one of the first nix-tips.ru/yii2-primeryaem-pjax-na-activeform-ig...

M
Maxim Timofeev, 2015-05-16
@webinar

It's easier to use jquery for this. One form was hidden, the other was shown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question