summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/api_controller.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-18 12:13:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-18 12:13:12 +0200
commitb0e09e9db4cef075491ef683d89390faa2e6b8c3 (patch)
tree32799b1aed99f9e1632569e9b183117fd284e1ca /application/controllers/api/api_controller.php
parent7a2ef40a39c3d9f34240453db8305e6607005089 (diff)
Remove unsupported secondary controller
Having more than one controller per request doesn't work with CI3. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/api_controller.php')
-rw-r--r--application/controllers/api/api_controller.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/controllers/api/api_controller.php b/application/controllers/api/api_controller.php
index 2b9054b17..d615d6cec 100644
--- a/application/controllers/api/api_controller.php
+++ b/application/controllers/api/api_controller.php
@@ -9,6 +9,10 @@
namespace controllers\api;
-abstract class api_controller extends \CI_Controller {
+abstract class api_controller {
+ public function __construct() {
+ $this->CI =& get_instance();
+ }
+
}