zanbaldwin / eventing

Eventing is a PHP application framework, by Zander Baldwin, based on the HMVC design pattern, licensed under the MIT/X11. This is an unstable, open-source side project.
MIT License
7 stars 0 forks source link

Load both system and application libraries #24

Closed zanbaldwin closed 12 years ago

zanbaldwin commented 12 years ago

Let the load_class() function load libraries that appear in two places: system/libraries/ and app/libraries/. Since they are in different namespaces, load both files if a library is in both. Use the application library because this will allow application libraries to extend system ones (yes, I know, it's a complete rip-off of CodeIgniter... hey, if it works, don't knock it!).

zanbaldwin commented 12 years ago

load_class() function now loads from both system/libraries/ and app/libraries/, and allows the application libraries to extend and/or overwrite the system libraries.