I am following WordPress's naming convention where a class My_Class
should reside in the file named class-my-class.php
. I used this autoloader for WordPress, written by Rarst. If I print out the $class_name
variable, I see that the prefix class
is appended to the folder name and not the class file. I had the same issue with some other autoloader I used earlier. I can do a little bit of string manipulation and get what I want but I want to know what is the exact issue.
What could be wrong?