Advertisement
jamboljack

Jumlah Proposal Siap Nilai

Jan 26th, 2019
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. public function jumlahsiapnilai_post()
  2.     {
  3.         $username = trim($this->post('username'));
  4.  
  5.         if ($username == '') {
  6.             $response = [
  7.                 'resp_error' => true,
  8.                 'resp_msg'   => 'Username kosong.',
  9.             ];
  10.         } else {
  11.             $listProposal = $this->db->get('v_proposalpenilaian')->result();
  12.             $total        = count($listProposal);
  13.             $response     = [
  14.                 'resp_error' => false,
  15.                 'resp_msg'   => 'success',
  16.                 'total'      => number_format($total, 0, '', ','),
  17.             ];
  18.         }
  19.  
  20.         $this->response($response, 200);
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement