What is best possible approach to autoload classes from a PHP Project which is residing in
PHP Project
C:
|Projects
|MyProject
|Classes
|CStudents.php
|Student (ClassName)
|getStudentName() (Method)
All the classes have prefixes, such that, if the class is Students then it resides in CStudents.php
Right now I need to access these classes pull out some data and further with the Zend Framework 2 modules.
Zend Framework 2 Project:
C:
|Projects
|Zend
|module
|Application
|Module.php
So what would be the simple and best possible approach for this. I need to autoload not more than 50 Classes.
EDIT: My question is almost similar to this one, but the only difference is that I have the requirement for Zend Framework 2.
As mentioned all Classes are residing in Classes folder, Class files have "C" [CStudent.php] as prefixes and the class names [Class Student]start without the prefixes, so lets say I want to access Student::getStudentName(); How can I accomplish that?
Thanks