Welcome Guest, Not a member yet? Register   Sign In
Libraries in subfolders
#2

[eluser]xwero[/eluser]
There are contributions to patch this. So you are right it doesn't work maybe the load->model path code snippet should be made into a function and put into the codeigniter/common.php file to make it available for all loaded files to use
Code:
last_mile_path($path)
{
    $return = new stdClass();
    
    if (strpos($path, '/') === FALSE)
    {
        $return->dirs = '';
        $return->file = $path;
    }
    else
    {
    $x = explode('/', $path);
    $return->file = end($x);
    unset($x[count($x)-1]);
    $return->dirs = implode('/', $x).'/';
    }

    return $return;
}


Messages In This Thread
Libraries in subfolders - by El Forum - 07-01-2008, 02:39 AM
Libraries in subfolders - by El Forum - 07-01-2008, 02:59 AM
Libraries in subfolders - by El Forum - 07-01-2008, 06:18 AM
Libraries in subfolders - by El Forum - 07-01-2008, 07:17 AM
Libraries in subfolders - by El Forum - 07-01-2008, 07:42 AM
Libraries in subfolders - by El Forum - 07-01-2008, 07:46 AM
Libraries in subfolders - by El Forum - 07-01-2008, 07:51 AM
Libraries in subfolders - by El Forum - 07-01-2008, 07:59 AM
Libraries in subfolders - by El Forum - 07-01-2008, 08:06 AM
Libraries in subfolders - by El Forum - 07-14-2008, 09:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB