Does anyone know if it’s possible to use a function to get the id of a model to perform an edit on the row?
Currently my grid view widget is setup like so:
echo GridView::widget([ 'dataProvider' => $dataProvider3, 'columns' => [ ... 'editableOptions' => [ 'header' => 'Notes', 'inputType' => \kartik\editable\Editable::INPUT_TEXT, 'formOptions' => ['action' => ['application/edit']], 'pjaxContainerId' => 'permission', 'format' => 'button', 'options' => [ 'pluginOptions' => [ ] ], ...
My problem is the id sent to the edit is the id of the row. That is not the case for the id’s in my table. Is it possible to do something along the lines of:
> 'formOptions' => ['action' => ['application/edit'], 'id' => $model->id],
Or is that not possible?