This is freaking sweet... wow! Thanks a lot d11... this cleaned up a lot of messy code for me. Awesome idea!
BTW... I just got to use it for the first time on a new project so that's why I am revisiting this thread.
The perfect service locator for PHP5 using __autoload?
Moderator: General Moderators
for those that dont know spl_autoload functions (multiple) allow you to change the __autoload function or create multiple autoload functions just thought this was worth noting it always annoyed me having to do
function __autoload($class_name) {
}
now i can name the function whatever i want and put it in whatever class i feel like.
function __autoload($class_name) {
}
now i can name the function whatever i want and put it in whatever class i feel like.