Welcome Guest, Not a member yet? Register   Sign In
Undefined property: CI_Loader::$theme after move from PHP4 -> PHP5
#2

[eluser]WanWizard[/eluser]
Fixed the problem.

Turned out that for some reason CI_BASE (in Base5.php) was instantiated twice, which ruined the result of get_instance().

Solution:
Code:
public function CI_Base()
    {
        //
        // fix to make sure second instantiation doesn't ruin
        // the superobject pointer!
        //
        if ( ! isset(self::$instance) )
        {
            self::$instance =& $this;
        }
    }
which makes sure it is NEVER overwritten once defined. Now I only have to find the 'some reason'... Wink


Messages In This Thread
Undefined property: CI_Loader::$theme after move from PHP4 -> PHP5 - by El Forum - 01-06-2009, 11:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB