27 lines
857 B
PHP
27 lines
857 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
|
|
class BkoReports extends BaseController
|
|
{
|
|
|
|
public function startedApplication() :ResponseInterface
|
|
{
|
|
//SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications;
|
|
$query = $this->db->query("SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications ");
|
|
$row = $query->getResult('array');
|
|
$data = [
|
|
'call_return' => '100',
|
|
'records' => $row
|
|
];
|
|
return $this->respond($data, 200);
|
|
// return $this->respond([], 200);
|
|
}
|
|
public function pendingApplication() :ResponseInterface
|
|
{
|
|
return $this->respond([], 200);
|
|
}
|
|
|
|
} |