employers
This commit is contained in:
@@ -184,4 +184,14 @@ $loc = 100;
|
||||
return $this->respond($result_data, 200);
|
||||
}
|
||||
|
||||
public function listUsers(){
|
||||
|
||||
$query = $this->db->query("SELECT e.name AS employer_name, es.* FROM employers_signatory es LEFT JOIN employers e ON e.id = es.employer_id");
|
||||
$row = $query->getResult('array');
|
||||
$data = [
|
||||
'call_return' => '100',
|
||||
'records' => $row
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user