Welcome Guest, Not a member yet? Register   Sign In
Severity: Notice --> Undefined property: Login::$session
#1

[eluser]Unknown[/eluser]
Hi,
I am new to PHP and came from Java Web Application development background. I started to build a Web Application for a Charity, and wanted to implement it in PHP. I m using PHP 5 with Jboss server. I am very impressed with this framework and it has almost all the design patterns of a Java. I have been struggling with an issue for the last 2 days, here is my code.
Code:
class Login extends Controller {
    function Login()  {
        parent::Controller();
     }

    function index()
    {
        $session_id = $this->session->userdata('session_id');
        log_message('debug', "_processLogin Session Created =".$session_id);
            
    }
}


I keep getting the error
Quote:Undefined property: Login::$session
Can someone please help me on this please….please…
Thanks
S.Shangar
#2

[eluser]Unknown[/eluser]
By the way I do have the following in the autoload config
$autoload['libraries'] = array('session', 'xmlrpc');

Thanks
S.Shangar




Theme © iAndrew 2016 - Forum software by © MyBB