Something to mention is that the ci_find_resource() function acts in a cascading manner. If you know much about CSS this will make perfect sense to you. In CSS the most localized declarations take precedence over the more remote ones. So an inline style takes precedence over a style block in the head of a page which takes precedence over an external style sheet.
It is the same in this modified CI. Configurations/Libraries/Views/etc in the local application directory will be loaded in preference to those in the globally accessible extended directories which are loaded in preference to the ones in the CI system dir. If you configure more than one directory in the ci_search_paths config, they are given preference in the order they appear in the array.
So if you were to configure a single directory in ci_search_paths and had a library file named mylibrary.php in the local applications/libraries directory, the configured search directory’s libraries directory, and the system/libraries directory, only the one from the local application would get loaded. However, if you were to remove the one in the local application directory and leave the other two, the one from the configured directory would now load.
