[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
simaku
/
application-old
/
controllers
/
[
Home
]
File: User.php
<?php class User extends CI_Controller { public function __construct() { parent::__construct(); $this -> load -> model('country_model'); } function Register() { $data['countries'] = $this -> country_model -> get_countries(); $this -> load -> view('test/post_view', $data); } function get_cities($country){ $this->load->model('city_model'); //header('Content-Type: application/x-json; charset=utf-8'); echo(json_encode($this->city_model->get_cities($country))); } function get_rek4($mak4){ $this->load->model('city_model'); header('Content-Type: application/x-json; charset=utf-8'); echo(json_encode($this->city_model->get_rek4($mak4))); } function get_rek4real($mak4){ $this->load->model('city_model'); header('Content-Type: application/x-json; charset=utf-8'); echo(json_encode($this->city_model->get_rek4real($mak4))); } function get_uraian($mak4){ $this->load->model('city_model'); header('Content-Type: application/x-json; charset=utf-8'); echo(json_encode($this->city_model->get_uraian($mak4))); } }