34 lines
641 B
PHP
34 lines
641 B
PHP
<?php
|
|
|
|
namespace App\Controllers\Frontend;
|
|
|
|
use App\Controllers\BaseController;
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
use CodeIgniter\API\ResponseTrait;
|
|
use App\Models\TopupSettingModel;
|
|
|
|
|
|
|
|
class TopupSettingController extends BaseController
|
|
{
|
|
use ResponseTrait;
|
|
private $settings;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->settings = new TopupSettingModel();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$data = $this->settings
|
|
->orderBy('topup_amount', 'ASC')
|
|
->findAll();
|
|
|
|
return $this->respond([
|
|
'status' => 200,
|
|
'data' => $data,
|
|
]);
|
|
}
|
|
}
|