Bug in core/Loader.php
The following line 225 in core/Loader.php should be changed from
$this->model(is_int($key) ? $value : $key, $value);
To the following:
is_int($key) ? $this->model($value, '', $db_conn) : $this->model($key, $value, $db_conn);
Otherwise it will generate errors when loading multiple models which resides in subfolders by passing an array, I've had to change it manually for now to get things working in my project.
What kind of errors?
I should have explained it further,
The current code is passing an alias to models loader each time, which is OK when the models aren't in subfolders because users_model => users_model
but for example if you have something like subfolder/users_model the current code will load users_model & give it an alias of "subfolder/users_model" so you cannot access it using $this->users_model (it's not there because it was loaded with different name).
Also the current code doesn't account for database loading or something (I don't know what's the use of this, but I thought I'd include it anyway in the fix).