Welcome Guest, Not a member yet? Register   Sign In
Autoload model with usage of autoloaded libraries
#5

[eluser]Derek Allard[/eluser]
Just a thought. Open up your system/libraries/Loader.php, and look for
Code:
// Autoload models
if (isset($autoload['model']))
{
    $this->model($autoload['model']);
}

try cutting that, and pasting it a few lines lower immediately after
Code:
// Load all other libraries
            foreach ($autoload['libraries'] as $item)
            {
                $this->library($item);
            }
        }

so that now it looks like
Code:
// Load all other libraries
            foreach ($autoload['libraries'] as $item)
            {
                $this->library($item);
            }
        }        

        // Autoload models
        if (isset($autoload['model']))
        {
            $this->model($autoload['model']);
        }

    }
    
    // --------------------------------------------------------------------

Any help?


Messages In This Thread
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 08:31 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 11:00 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 11:25 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 01:31 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 03:05 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 04:04 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 04:13 PM
Autoload model with usage of autoloaded libraries - by El Forum - 01-03-2008, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB