Member delete
To delete a member, you need to accept the deleted id, so you need to modify the delete button
Write code in the controller
//用戶刪除 public function del(){ $admin=D('Admin'); if($admin->delete(I('id'))){ $this->success('刪除管理員成功!'); }else{ $this->error('刪除管理員失??!'); } }