我遇到问题,我无法从控制器中删除Quickblox用户 任何人都可以帮我解决这些问题。
我的控制器功能是
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删除用户。 如何实现这个???请帮我解决一下这个 。
等待回复................