Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2. require APPPATH . '/libraries/REST_Controller.php';
  3. use Restserver\libraries\REST_Controller;
  4. require APPPATH . 'libraries/Format.php';
  5.  
  6. /**
  7.  * This is an example of a few basic user interaction methods you could use
  8.  * all done with a hardcoded array
  9.  *
  10.  * @package         CodeIgniter
  11.  * @subpackage      Rest Server
  12.  * @category        Controller
  13.  * @author          Phil Sturgeon, Chris Kacerguis
  14.  * @license         MIT
  15.  * @link            https://github.com/chriskacerguis/codeigniter-restserver
  16.  */
  17. class barang extends REST_Controller{
  18. function __construct($config ='rest'){
  19.         parent::__construct($config);
  20.         header('Content-Type: application/json');
  21.         $this->load->library('form_validation');
  22.        
  23.     }
  24. }
  25. <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement