Fixed case for models in AUtolaoder.

Also created empty application/Libraries folder, mentioned in the AUtoloader.
Signed-off-by:Master Yoda <jim_parry@bcit.ca>
This commit is contained in:
Master Yoda 2016-05-31 08:10:45 -07:00
parent 501394dfa9
commit d55dd7f9c5
2 changed files with 3 additions and 3 deletions

0
application/Libraries/.gitignore vendored Normal file
View File

View File

@ -275,7 +275,7 @@ class Autoloader
/**
* Attempts to load the class from common locations in previous
* version of CodeIgniter, namely 'application/libraries', and
* 'application/models'.
* 'application/Models'.
*
* @param $class The class name. This typically should NOT have a namespace.
*
@ -292,8 +292,8 @@ class Autoloader
$paths = [
APPPATH.'Controllers/',
APPPATH.'libraries/',
APPPATH.'models/',
APPPATH.'Libraries/',
APPPATH.'Models/',
];
$class = str_replace('\\', '/', $class).'.php';