Welcome Guest, Not a member yet? Register   Sign In
custom mibrary
#2

[eluser]TheFuzzy0ne[/eluser]
I haven't tested this, but it might work:

Code:
function __autoload($class)
{
    if(strpos($class, 'CI_') !== 0)
    {
        return;
    }
    
    foreach (['core/', 'libraries/', 'models/'] as $dir)
    {
        if (file_exists(APPPATH . $dir . $class . EXT))
        {
            include_once(APPPATH . $dir . $class . EXT);
            return;
        }
    }
}


Messages In This Thread
custom mibrary - by El Forum - 04-29-2013, 11:56 PM
custom mibrary - by El Forum - 04-30-2013, 03:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB