Jump to content

Class visibility and database connection


silversurfer5150

Recommended Posts

Prestashop uses autoload, you can just use any class under the classes directory without the need to include anything. And you can access the database connection anywhere using the getInstance method, check other files to see how they use it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...