27 lines
500 B
PHP
27 lines
500 B
PHP
<?php
|
|
namespace App\Controllers\Common;
|
|
|
|
use App\Controllers\BaseController;
|
|
use App\Models\common\CommonModel;
|
|
|
|
|
|
class Common extends BaseController
|
|
{
|
|
private $model;
|
|
public function __construct()
|
|
{
|
|
$this->model = new CommonModel();
|
|
}
|
|
|
|
public function getVrfcCode()
|
|
{
|
|
$type = $this->request->getGet("type");
|
|
$type = "VRFC_TYPE_SUB_" . $type;
|
|
|
|
|
|
$data = $this->model->getVrfcCode($type);
|
|
|
|
return $this->response->setJSON($data);
|
|
|
|
}
|
|
} |