summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/api_controller.php
diff options
context:
space:
mode:
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();
+ }
+
}