/** * @param int $id */ public function handleDelete($id) { if ($this->user->isAllowed('Article', 'edit')) { $this->article = $this->articleManager->get($id); if ($this->article) { $this->articleManager->deleteArticle($id); $this->flashMessage('Article was removed'); $this->redrawControl('flashes'); // $this->redrawControl('datalist'); } } if (!$this->isAjax()) { $this->redirect('this'); } }