亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Member delete

To delete a member, you need to accept the deleted id, so you need to modify the delete button1.發(fā)送id.png

Write code in the controller

2.編寫png.png

3.png

4.png

5.png

#Application\Admin\Controller\AdminController.class.php


 //用戶刪除
     public function del(){
        $admin=D('Admin');
        if($admin->delete(I('id'))){
            $this->success('刪除管理員成功!');
        }else{
            $this->error('刪除管理員失??!');
        }
    }


Continuing Learning
||
//用戶刪除 public function del(){ $admin=D('Admin'); if($admin->delete(I('id'))){ $this->success('刪除管理員成功!'); }else{ $this->error('刪除管理員失?。?); } }
submitReset Code