使用codeigniter从QuickBlox中删除用户

时间:2016-12-08 10:24:06

标签: php codeigniter quickblox

我遇到问题,我无法从控制器中删除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删除用户。 如何实现这个???请帮我解决一下这个 。

等待回复................

1 个答案:

答案 0 :(得分:2)

这可能对你有所帮助 要通过它的标识符删除用户,您可以使用它 Quickblox