Пример #1
0
 public function del()
 {
     $id = $this->id;
     $commentUser = new CommentuserModel();
     $comment = new CommentModel();
     if ($commentUser->delete($id) && $comment->delCommentByCommentUserId($id)) {
         href('删除成功');
     } else {
         href('删除失败');
     }
 }