Initial import

This commit is contained in:
sas.fajri
2026-04-27 10:26:26 +07:00
commit bf9b9097ee
2388 changed files with 3002242 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
class Agama extends MY_Controller
{
public function __construct() {
parent::__construct();
$this->db_smartone = $this->load->database("onedev", true);
}
function list() {
$sql = "select * from m_religion";
$qry = $this->db_smartone->query($sql);
if ($qry) {
$rows = $qry->result_array();
echo json_encode($rows);
} else {
echo json_encode(array());
}
}
function get($id) {
$sql = "select * from m_religion where M_ReligionID=?";
$qry = $this->db_smartone->query($sql,$id);
if ($qry) {
$rows = $qry->result_array();
echo json_encode($rows);
} else {
echo json_encode(array());
}
}
}
?>