예제 #1
0
 function delete()
 {
     $id = $this->input->get_post('contentid');
     parent::delete($id, 'RVK');
 }
예제 #2
0
파일: group.php 프로젝트: cordova2009/SMA
 function delete()
 {
     $id = $this->input->get_post('id');
     if ($this->user_model->getOne(array('gid' => $id, 'status >' => 0))) {
         echo json_encode(array('status' => '3', 'msg' => '该角色下还有用户,请先删除其下所有用户,再删除该角色!'));
         exit;
     }
     parent::delete();
 }