public function actionDelete($id, $goodsId) { if ($this->item->deletePhoto($id)) { $this->flashMessage('Fotka byla smazána.', 'success'); } else { $this->flashMessage('Smazání se nezdařilo.', 'danger'); } $this->redirect('Photo:default', $goodsId); }