Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function jumlahsiapnilai_post()
- {
- $username = trim($this->post('username'));
- if ($username == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Username kosong.',
- ];
- } else {
- $listProposal = $this->db->get('v_proposalpenilaian')->result();
- $total = count($listProposal);
- $response = [
- 'resp_error' => false,
- 'resp_msg' => 'success',
- 'total' => number_format($total, 0, '', ','),
- ];
- }
- $this->response($response, 200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement