Initial import
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
class Status extends MY_Controller
|
||||
{
|
||||
var $db_smartone;
|
||||
public function index()
|
||||
{
|
||||
echo "API";
|
||||
}
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->db_smartone = $this->load->database("onedev", true);
|
||||
}
|
||||
public function lookup()
|
||||
{
|
||||
$status = array(
|
||||
array("id"=>2,"code"=>"FO.Verification","name" => "Baru" ),
|
||||
array("id"=>3,"code"=>"FO.Verification.Confirm","name" => "Verified"),
|
||||
array("id"=>4,"code"=>"FO.Verification.Reject","name" => "Ditolak")
|
||||
);
|
||||
$result = array(
|
||||
"total" => count($status) ,
|
||||
"records" => $status,
|
||||
);
|
||||
$this->sys_ok($result);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user