This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
/** | |
* @author ([email protected]) | |
* @copyright 2017 CodeIgniter | |
*/ | |
class Create_item extends Public_Controller | |
{ | |
public function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
/** | |
* @author ([email protected]) | |
* @copyright 2017 CodeIgniter | |
*/ | |
class Create_product extends Public_Controller | |
{ | |
public function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
/** | |
* @author ([email protected]) | |
* @copyright 2017 CodeIgniter | |
*/ | |
class Service extends Public_Controller | |
{ | |
public function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
/** | |
* @author ([email protected]) | |
* @copyright 2017 CodeIgniter | |
*/ | |
class Register extends Public_Controller | |
{ | |
public function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function curl($url, $content) { | |
$curl = curl_init(); | |
curl_setopt($curl, CURLOPT_URL, $url); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, $content); | |
curl_setopt($curl, CURLOPT_POST, 1); | |
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->header); | |
curl_setopt($curl, CURLINFO_HEADER_OUT, true); | |
$server_output = curl_exec ($curl); |