Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Update Read Notifikasi
- public function readnotifikasi_post()
- {
- $username = trim($this->post('username'));
- $notifikasi_id = trim($this->post('notifikasi_id'));
- if ($username == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Username Kosong.',
- ];
- } elseif ($notifikasi_id == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Notifikasi ID Kosong.',
- ];
- } else {
- $dataNotif = array(
- 'notifikasi_status' => 2,
- );
- $this->db->where('notifikasi_id', $notifikasi_id);
- $this->db->update('bpmppt_notifikasi', $dataNotif);
- $response = [
- 'resp_error' => false,
- 'resp_msg' => '',
- ];
- }
- $this->response($response, 200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement