Skip to content

Commit 34d8dab

Browse files
aproramchriskacerguis
authored andcommitted
* Update Example.php Fix File REST_Controller not found problem * Update REST_Controller.php Class 'Restserver\Libraries\CI_Controller' not found
1 parent 97c3618 commit 34d8dab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

application/controllers/api/Example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
66
/** @noinspection PhpIncludeInspection */
7-
//require APPPATH . 'libraries/REST_Controller.php';
7+
//To Solve File REST_Controller not found
8+
require APPPATH . 'libraries/REST_Controller.php';
9+
require APPPATH . 'libraries/Format.php';
810

911
/**
1012
* This is an example of a few basic user interaction methods you could use

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
namespace Restserver\Libraries;
4-
4+
use CI_Controller;
55
use Exception;
66
use stdClass;
77

0 commit comments

Comments
 (0)