Welcome Guest, Not a member yet? Register   Sign In
Library's parameters load with MAMP, but will not load when placed on server?
#7

[eluser]TheFuzzy0ne[/eluser]
I'd suggest changing your file name so that either the whole name is lowercase, or only the first letter is capitalised:

./system/libraries/Loader.php - line 860
Code:
function _ci_init_class($class, $prefix = '', $config = FALSE, $object_name = NULL)
    {    
        // Is there an associated config file for this class?
        if ($config === NULL)
        {
            // We test for both uppercase and lowercase, for servers that
            // are case-sensitive with regard to file names
            if (file_exists(APPPATH.'config/'.strtolower($class).EXT))
            {
                include_once(APPPATH.'config/'.strtolower($class).EXT);
            }            
            else
            {
                if (file_exists(APPPATH.'config/'.ucfirst(strtolower($class)).EXT))
                {
                    include_once(APPPATH.'config/'.ucfirst(strtolower($class)).EXT);
                }            
            }
        }

This could be made a bit clearer in the docs. Please consider reporting this.


Messages In This Thread
Library's parameters load with MAMP, but will not load when placed on server? - by El Forum - 04-09-2009, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB