silversurfer5150 Posted March 5, 2011 Share Posted March 5, 2011 Hey there,Where can I find out which prestashop classes are visibile to one another? For, example, I can see the db connection php files but I am unsure of where each script makes that connection? What if I wanted to write some new code which required db connection?thanks Link to comment Share on other sites More sharing options...
Burhan BVK Posted March 5, 2011 Share Posted March 5, 2011 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 More sharing options...
silversurfer5150 Posted March 5, 2011 Author Share Posted March 5, 2011 Thanks so much very kind of you to respond, have a gd day Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now