Answer the question
In order to leave comments, you need to log in
How to add a record to a linked table in Yii2 using pjax?
I open a table entry for viewing, below the entry fields, I display a GridView with entries from the associated table. Now I want to add form fields below this table for its quick completion. What options I do not try, all lead to a page reload. Or the only option is to use ajax to submit the form and then call the grid update via pjax?
Answer the question
In order to leave comments, you need to log in
Look at the logs, what request flies and what happens there. There are a lot of options, or the form does not cling to pjax and sends a regular post, or there is a redirect in the controller, or an error or a timeout and pjax sends a normal request after its expiration.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question