"; print_r($invoice); exit(); $data = array( 'status' => 1 ); $data = $this->security->xss_clean($data); $this->admin_model->edit_option($data, $invoice->id, 'invoice'); echo json_encode(array('st' => 1)); } public function deactive($id) { $data = array( 'status' => 0 ); $data = $this->security->xss_clean($data); $this->admin_model->update($data, $id,'invoice'); $this->session->set_flashdata('msg', trans('msg-deactivated')); redirect(base_url('admin/services')); } public function delete($id) { $this->admin_model->delete($id,'invoice'); echo json_encode(array('st' => 1)); } }