jojo89 Posted June 10, 2015 Share Posted June 10, 2015 hi everybody, i just try to create a new php file in racing of my website and in this file i write just : require(dirname(__FILE__).'/config/config.inc.php'); echo Product::getPriceStatic(7);exit; To get the product price, but i get an array :s something like that : Array([0] => Array([file] => C:\Program Files (x86)\EasyPHP\data\localweb\presta16014\classes\Product.php[line] => 2599[function] => displayError[class] => ToolsCore[type] => ::[args] => Array())[1] => Array([file] => C:\Program Files (x86)\EasyPHP\data\localweb\presta16014\test.php[line] => 7[function] => getPriceStatic[class] => ProductCore[type] => ::[args] => Array([0] => 7))) do u have any idea ? thanks you Link to comment Share on other sites More sharing options...
pishkus Posted June 10, 2015 Share Posted June 10, 2015 You also need to include the init.php file, which is in the root folder. Hope this helps. Link to comment Share on other sites More sharing options...
jojo89 Posted June 11, 2015 Author Share Posted June 11, 2015 Oh super it's work thank you so much pishkus 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