Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Class not found error, how do I reference classes? Reply To: Class not found error, how do I reference classes?

#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.