Welcome Guest, Not a member yet? Register   Sign In
CI 1.6 - autoload custom library, config name bug
#1

[eluser]krzycho[/eluser]
For autoloading parameters stored in a config file for custom libraries CI Guide states: "You can also pass parameters stored in a config file. Simply create a config file named identically to the class file name and store it in your application/config/ folder."

But in lines 840-849 of Loader class we have:
Quote:$class = strtolower($class);

// Is there an associated config file for this class?
if ($config === NULL)
{
if (file_exists(APPPATH.'config/'.$class.EXT))
{
include(APPPATH.'config/'.$class.EXT);
}
}

which means that config file for library MUST be lowercase.
That's unexpected change from CI 1.5.4




Theme © iAndrew 2016 - Forum software by © MyBB