Kogkalidis Posted August 15, 2018 Share Posted August 15, 2018 (edited) I use two functions in my custom code lets say function Query and function QueryLang The first one returns db::getInstance()->executeS($sql); In the second one after I prepare my query to include the respective _lang table, I call the first one but in bux fixing when I was doing var_dump($result) it was showing as text and not array. Why? Edited August 15, 2018 by tapanda.gr (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted August 15, 2018 Author Share Posted August 15, 2018 I found the solution myself. The new version (1.7.x) alters the way it produces the mysql data. Instead of db::getInstance()->executeS($sql); we have to use (db::getInstance())->executeS($sql); More info in the following linkhttps://floriancourgey.com/2018/04/use-db-the-database-class-in-prestashop-1-7/ 1 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