I have an index that call a typical create/update view.
Within these, the _form uses bootstrap Tabs, the 1st one renders the views ActiveForm, but on the 2nd tab I need to render the index for another related view.
As such, I used
this->render(…)
and it does display.
My issue is if I try to filter the data, no matter what I try in save the main form and closes, or render the main form on the 2nd tab instead of reloading the referenced index view. How do I get pjax to work with the 2nd view?
Hi,
Have you tried using redirect instead of render? Because render will display the view, but maybe you’re missing some data provided by the controller. So if you call the second actionIndex using redirect it will load the needed data and, after that, render the second index view. Without seeing your code, that’s the first thing I would try.
Regards!
No prob. Just try instead of calling directly the view like this:
$this->render(‘otherControllerView’, [$params])
Try calling the action in the other controller, like:
$this->redirect([otherController/action, $params])