danmikkelsen Posted May 15, 2011 Share Posted May 15, 2011 I need to get some data from the database to display from a custom function i made and added as a plugin (in the smarty plugin folder)Is there a way to get the username, password and database name in my php function?I could just add them manually, but then if the page gets moved or password changed, i need to find the functions again. Link to comment Share on other sites More sharing options...
Burhan BVK Posted May 15, 2011 Share Posted May 15, 2011 Just use the Prestashop db class. It is called in a lot of the files, you can easily find usage examples. 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