Php 使用codeigniter从QuickBlox中删除用户
我遇到一个问题,无法从控制器中删除Quickblox用户 有人能帮我写代码吗 我的控制器功能是Php 使用codeigniter从QuickBlox中删除用户,php,codeigniter,quickblox,Php,Codeigniter,Quickblox,我遇到一个问题,无法从控制器中删除Quickblox用户 有人能帮我写代码吗 我的控制器功能是 public function delete_customer($id) { $query = $this->db->select('quick_id')->from('tbl_customer') ->where('id',$id)
public function delete_customer($id)
{
$query = $this->db->select('quick_id')->from('tbl_customer')
->where('id',$id)
->get();
$quick_id = $query->row_array();
$q_id = $quick_id['quick_id'];
$get_img_file = $this->customer_model->check_by(array('id' => $id), 'tbl_customer');
$this->customer_model->_table_name = "tbl_customer"; // table name
$this->customer_model->_primary_key = "id"; // $id
$this->customer_model->delete($id);
if(file_exists($file) == 1)
unlink($file);
// messages for user
$type = "success";
$message = "Customer Successfully Deleted !";
set_message($type, $message);
redirect('admin/customer/customer_list'); //redirect page
}
我需要根据QuickBlox表中存储的quick_id删除用户。
如何做到这一点???请帮我做这个
等待答复这可能会对您有所帮助
要按用户的标识符删除用户,可以使用