/** @return void */ public function renderDetail($articleId) { $articleCategories = $this->article->getAllCategories(); $articleNotCategories = $this->articles->getNotCategories($this->article, $this->categories->findAll()); $articleComments = $this->article->getAllComments(); $this->template->article = $this->article; $this->template->articleCategories = $articleCategories; $this->template->articleComments = $articleComments; $this->template->articleNotCategories = $articleNotCategories; }
public function handleDeleteCategory($categoryId) { $this->category = $this->categories->getByID($categoryId); $this->categories->delete($this->category); $this->redrawControl('categories'); }