Welcome Guest, Not a member yet? Register   Sign In
Config File is Double Loading
#5

[eluser]InsiteFX[/eluser]
Then you need to use the older one here.
Code:
/*
| -------------------------------------------------------------------
|  Native Autoload - by Phil Sturgeon. New Version!
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
| If using HMVC you do not need this! HMVC will autoload.
|
| Place this code at the bottom of your application/config/config.php file.
*/
function __autoload($class)
{
    if (strpos($class, 'CI_') !== 0)
    {
        if (file_exists($file = APPPATH . 'core/' . $class . 'php'))
        {
            include $file;
        }
        elseif (file_exists($file = APPPATH . 'libraries/' . $class . 'php'))
        {
            include $file;
        }
    }
}


Messages In This Thread
Config File is Double Loading - by El Forum - 07-10-2012, 12:05 AM
Config File is Double Loading - by El Forum - 07-10-2012, 12:38 AM
Config File is Double Loading - by El Forum - 07-10-2012, 03:52 AM
Config File is Double Loading - by El Forum - 08-01-2012, 03:50 PM
Config File is Double Loading - by El Forum - 08-01-2012, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB