Commit 69e6d958 authored by Oky Rahmanto's avatar Oky Rahmanto
Browse files

Merge branch 'development' of https://gitlab.informatika.org/setiawan/six7...

Merge branch 'development' of https://gitlab.informatika.org/setiawan/six7 into feature/authpagecustomer
add login page dan register page
parents 06476142 91346f35
Pipeline #23683 passed with stages
in 6 minutes and 5 seconds
......@@ -249,25 +249,6 @@ 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();
......
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