Answer the question
In order to leave comments, you need to log in
How to create a popup form?
Can you please tell me how to create an ajax form in a popup on a page?
There is a controller
public function actionIndex()
{
$form = new MyForm();
if ($form->load(Yii::$app->request->post()) && $form->save()) {
return true;
} else {
return $form->getFirstError('field');
}
return $this->render('index');
}
Answer the question
In order to leave comments, you need to log in
Here's someone straight for you washed down)) https://github.com/borodulin/yii2-modal-form
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question