Welcome Guest, Not a member yet? Register   Sign In
Call to a member function ... on a non-object
#8

[eluser]GrahamDj28[/eluser]
I see you are not calling the constructor of CI_controller

Change the constructor from
Code:
function __construct()
{
    $this->is_logged_in();
}

To this
Code:
function __construct()
{
    parent::__construct();
    $this->is_logged_in();
}

By not calling the parent constructor the CI super object is not available


Messages In This Thread
Call to a member function ... on a non-object - by El Forum - 04-14-2012, 07:33 AM
Call to a member function ... on a non-object - by El Forum - 04-14-2012, 08:14 AM
Call to a member function ... on a non-object - by El Forum - 04-14-2012, 08:20 AM
Call to a member function ... on a non-object - by El Forum - 04-14-2012, 08:32 AM
Call to a member function ... on a non-object - by El Forum - 10-06-2012, 03:30 AM
Call to a member function ... on a non-object - by El Forum - 10-06-2012, 04:14 AM
Call to a member function ... on a non-object - by El Forum - 10-06-2012, 06:03 AM
Call to a member function ... on a non-object - by El Forum - 10-06-2012, 08:23 AM
Call to a member function ... on a non-object - by El Forum - 03-12-2014, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB