function actionDeleteComment($params = '') { if (!empty($params['comment_id'])) { $objBlog = new BlogModel(); $objBlog->deleteComment($params['comment_id']); $this->messages[] = array('type' => 'success', 'message' => 'Blog comment has been deleted.'); } else { $this->messages[] = array('type' => 'error', 'message' => 'Unknown comment to delete.'); } $this->actionComments(); }