[eluser]beerguide_au[/eluser]
Can you guys please elaborate a little on how to do this?
Sorry for sounding so green, but I am. This is my first real use of CodeIgniter and I'm trying to integrate IPBWI also. I have put ipbwi.inc.php in my /helper folder and renamed it ipbwi_helper.php and loaded it in my controller using $this->load->helper(ipbwi)
I am then trying to check if the member is logged in, in my controller, and set a session variable appropriately, code follows:
Code:
/** Set Data **/
if ($ipbwi->member->isLoggedIn()) {
$member = $ipbwi->member->info();
$this->session->set_userdata(array('display_name'=>$member['member_display_name'],'logged_in'=>TRUE));
}
The error I am receiving is:
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined variable: ipbwi
Filename: controllers/welcome.php
Fatal error: Call to a member function isLoggedIn() on a non-object
I am obviously doing something wrong, but I am not sure where to start and I am hoping you guys can help me out.