會(huì)員刪除
會(huì)員刪除,需要接受刪除的id,所以需要對刪除按鈕進(jìn)行修改
在控制器中編寫代碼
ApplicationAdminControllerAdminController.class.php
//用戶刪除 public function del(){ $admin=D('Admin'); if($admin->delete(I('id'))){ $this->success('刪除管理員成功!'); }else{ $this->error('刪除管理員失敗!'); } }