我在PHP中使用HMVC模型(CodeIgniter) 但是如何解决这个问题?
我使用Here中的库 但是还是一样的错误
请有人帮我...
错误是这样的:
*。我的控制器
<?php
use Restserver\Libraries\REST_Controller;
defined('BASEPATH') OR exit('No direct script access allowed');
require(APPPATH . 'libraries/REST_Controller.php');
require(APPPATH . 'libraries/Format.php');
class nelayan extends REST_Controller
{
public function __construct()
{
parent::__construct();
}
public function index_get()
{
$response['status'] = 200;
$response['error'] = false;
$response['message'] = 'Hai from response';
$this->response($response);
}
}