Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require APPPATH . '/libraries/REST_Controller.php';
- use Restserver\libraries\REST_Controller;
- require APPPATH . 'libraries/Format.php';
- /**
- * This is an example of a few basic user interaction methods you could use
- * all done with a hardcoded array
- *
- * @package CodeIgniter
- * @subpackage Rest Server
- * @category Controller
- * @author Phil Sturgeon, Chris Kacerguis
- * @license MIT
- * @link https://github.com/chriskacerguis/codeigniter-restserver
- */
- class barang extends REST_Controller{
- function __construct($config ='rest'){
- parent::__construct($config);
- header('Content-Type: application/json');
- $this->load->library('form_validation');
- }
- }
- <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement