I also typically use MY_controller to extend the controllers within my own sites when using flexi auth, and it works fine for me.
My setup is something like the following:
MY_controller example (Located in /application/core/MY_Controller.php)
Code:
class MY_controller extends CI_Controller {
function __construct()
{
parent::__construct();
$this->auth = new stdClass;
$this->load->library('flexi_auth');
// Example flexi auth library call within extended controller.
$this->data['login_status'] = $this->flexi_auth->is_logged_in();
}
}
Top level controller example
Code:
class Example_controller extends MY_controller {
function __construct()
{
parent::__construct();
}
function index()
{
$this->load->view('index', $this->data);
}
}
Does that help?
@katanama - thanks for joining in and trying to help others out with the library!