In my Yii2 app I have a view
(item/view) that shows images (Image
model) that belong to that Item
. It's a PHP/HTML page, no Yii2 widgets (GridView
, DetailView
, etc). I want to have a delete button below the image that will use the delete method on the ImageController
.
Is there a built in way to create a delete button that will have a confirmation dialog and handle the pjax like GridView
does? Or will I have to roll my own?