I have a standard grid index/view with “GridView::widget” and “yii\grid\CheckboxColumn”. I have been reading documentation on how to get the checked row ids. The documentation says to add javascript but on examining “yii.gridView.js” it appears that is already included. I don’t see the keys getting in $_POST. I feel like I may be missing a number of steps. Can someone please walk me through the steps? Much appreciated.
I am beginning to see where the issue may be, although not sure how to resolve it. Below is the submit button code (in the index/grid view file) - which is not a form and just a link. I have a grid in an index view and don’t have a submit form, but I can see I may need it to do a POST.
Thank you Skull. I actually used user206’s answer of using forms and no javascript. I was going to post my version of it, but you beat me to it. Appreciate you finding this for me.