please trying to delete item after confirmation box promted but to no avail. any help
<?php
echo SideNav::widget([
'type' => SideNav::TYPE_PRIMARY,
'heading' => 'Operations',
'items' => [
[
'url' => Html::a('Delete agency',['agency/delete', 'id' => $model->agencyId] , [
'data' => [
'confirm' => 'Are you sure you want to delete?',
'method' => 'post',
]
])
],
],
]);
?>