Home › Forums › Back End › Class not found error, how do I reference classes? › Reply To: Class not found error, how do I reference classes?
September 22, 2014 at 9:54 am
#184119
Participant
I’m trying to include a php class for use with swiftmailer, but keep getting this error:
You need to make sure the class definition is included before trying to use it. What file is the class definition found in?
The Swift_AWSTransport references a base class, how would I go about referencing this base class from the class above?
Autoloading is the best solution to this, but it will require some study on your part and might require re-arranging how your files are organized.
Otherwise, you would need to include each class definition in the class hierarchy manually.