Commit b1cbcbe7 authored by Oky Rahmanto's avatar Oky Rahmanto
Browse files

Merge branch 'feature/slot-admin-page' into 'development'

Feature/slot admin page

See merge request !19
parents efca54f8 5e7e3798
Pipeline #23484 passed with stage
in 33 seconds
......@@ -249,6 +249,26 @@ class Users extends CI_Controller {
return $data;
}
function user_id($id){
//create a new cURL resource
$ch = curl_init($this->urluser."id/".$id);
//set the content type to application/json
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
//return response instead of outputting
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//execute the POST request
$result = curl_exec($ch);
//close cURL resource
curl_close($ch);
// echo 'HTTP code: ' . $httpcode;
echo $result;
}
function user_view(){
$data = $this->user_get();
$this->load->view('menu/header-menu.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment