Hi everybody, I would like to understand what I am doing wrong.
I have a kartikgrid that registers entries and a grid and a column action with few buttons to operate on them and one them is the delete action.
Delete action is only allowed with post and not get.
The layout is the following:
I would like to get confirmation upon deletion.
I have used the following options to configure for the post:
'deleteOptions' =>
['class' => 'glyphicon glyphicon-trash', 'data-modal-type' => 'confirm',
'label' => '<i class="fas fa-remove"></i>', 'data-type' => 'danger', 'data-method' =>'post', 'data-confirm' => false],
The element from the grid are removed without asking as expected,
By changing the configuration to:
'deleteOptions' =>
['class' => 'glyphicon glyphicon-trash', 'data-modal-type' => 'confirm',
'label' => '<i class="fas fa-remove"></i>', 'data-type' => 'danger', 'data-method' =>'post',
'data-confirm' => Yii::t('app', 'Sicuro di voler rimuovere la presenza?'),],
I get the following error from the server:
Any suggestions on hoe to fix?
many thanks
Andrea