示例#1
0
 /** @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;
 }
示例#2
0
 public function handleDeleteCategory($categoryId)
 {
     $this->category = $this->categories->getByID($categoryId);
     $this->categories->delete($this->category);
     $this->redrawControl('categories');
 }