/** * Add user to influencer */ public function add() { if ($post = $this->input->post()) { $blist = new Influencers_blacklist(); $blist->remove($this->c_user->id, $post['creator_id'], $post['social']); $wlist = new Influencers_whitelist(); $result = $wlist->add($this->c_user->id, $post['creator_id'], $post['social']); echo json_encode(array('success' => $result)); } }