one thing you can do to achieve this is something like this:
in: application/core
create: MY_Controller.php
in: application/core
create: Api_controller.php
in: MY_Controller.php your code could look like this:
PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Controller extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
}
// END MY_Controller class
if ( ! class_exists('Api_Controller'))
{
require_once APPPATH.'core/Api_controller.php';
}
/* End of file MY_Controller.php */
/* Location: ./application/core/MY_Controller.php */
this way your Api_controller class will be autoloaded with MY_Controller allowing you to extend it in application/controllers just like MY_Controller.
"I reject your reality and substitute my own" - Adam Savage, M5 Inc.