[eluser]esra[/eluser]
[quote author="m4rw3r" date="1221166922"]I think it would be nice if it's possible to specify the paths to
modules in the config.php instead of a generic modules dir.
The advantages with that is that it's better performance (no need to search for all modules) and you can switch modules on/off.
I can easily see a Loader implementation which uses this array with the APPPATH as the first element (automatically prepended).
It would be easy, just loop through all folders and check for the file you're looking for.[/quote]
I have not taken a close look at the core code since 1.5.4. At that point, there was more than one loader. I believe that common.php uses its own loader to load the default controller or the first controller called when the core boots. Config loads config files. The mod_loader effort dates back to 1.5.3 and the forum thread pretty much covers all of the areas where code changes were necessary. mod_loader was released as a hacked version of CI with all of the changes incorporated into the code. I believe that an enhanced version of this code along with regex improvements later became BlueFlame, the original name for the Kohana project.