public function handleDeleteArticle($id) { $this->article = $this->articles->getByID($id); $this->articles->delete($this->article); $this->redrawControl('articles'); }
public function actionDetail($articleId) { $this->article = $this->articles->getByID($articleId); $this->checkRecord($this->article); }