[eluser]Oliver Zeyen[/eluser]
Hey Ben!
I've started a vanilla installation of ci 2.0.1 with the latest modular extension running properly. I'm able to load modules. I dont use any extended controllers. just the plain welcome_controller.php.
ion_auth is now installed as a simple library, not as a module which somehow was a compromise, because i thought this would help in my case. in fact i prefer the library method.
session and database are autoloaded. ion_auth is loadad and invoked in the welcome controller. same problem here.
Code:
class Welcome extends CI_Controller {
public function index()
{
$this->load->library('ion_auth');
#var_dump($this->ion_auth->get_user()); // Cool! Userdata returned
$this->load->module('navigation'); // load my module as needed
$navigation = $this->navigation->get_navigation(); // get my navigation
#var_dump($this->ion_auth->get_user()); // Bad!
$this->load->view('welcome_message');
}
}
I've attached a screenshot of the error message. There seems to ba a problem with the magic __get function in core/Model.php, too.
Thanks for your help!