Results 1 to 2 of 2
Thread: PHP Autoload not working
Aug 13, 2013, 18:56 #1
- Join Date
- May 2006
- New York City
- 0 Post(s)
- 0 Thread(s)
PHP Autoload not working
Can anyone help me with this autoload? The errors I am receiving are:
Fatal error: Class 'Genesis\Controller\Login' not found in /genesis/genesis/index.php on line 30
I created a Pastebin so as to not have to copy/paste all of the code here. http://pastebin.com/Zj1B7WsB In the pastebin is all of the files needed as well as my file structure.
Any help would be much appreciated. I'm really at a loss.
Thanks!James Web Development | New York, NY
Design, Develop, Deliver
Aug 13, 2013, 20:00 #2
Your function needs to be named __autoload, not autoload. And it needs to actually include something, not just return a file name."First make it work. Then make it better."