smacss Posted April 8, 2018 Share Posted April 8, 2018 (edited) Hello evryone I'm using prestashop 1.6 I want to know how to create folders under /img/p in prestahop ;because i wanted to add a new product using sql queries .and i m looking for creating folder for each product'image using php or sql I found the code in Image.php but i didn't know how to use it alone in a new php class Edited April 8, 2018 by smacss (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted April 8, 2018 Share Posted April 8, 2018 (edited) IT IS COMPULSARY TO SPEAK FRENCH ON THIS SECTION OF THE FORUM !!! the answer is right in front of your eyes ! _PS_PROD_IMG_DIR_.$this->getImgFolder() Edited April 8, 2018 by doekia (see edit history) 1 Link to comment Share on other sites More sharing options...
smacss Posted April 8, 2018 Author Share Posted April 8, 2018 (edited) merci pour votre réponse et je m'excuse pour utiliser l'anglais; je souhaite utiliser cette classe séparée dans un autre fichier et non pas dans le répertoire de prestashop et par la suite _PS_PROD_IMG_DIR_.$this ne sera pas reconnue. je suis intéressé par une fonction similaire à mkdir en php 5 hours ago, doekia said: IT IS COMPULSARY TO SPEAK FRENCH ON THIS SECTION OF THE FORUM !!! the answer is right in front of your eyes ! _PS_PROD_IMG_DIR_.$this->getImgFolder() Edited April 8, 2018 by smacss (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted April 8, 2018 Share Posted April 8, 2018 http://php.net/manual/en/function.mkdir.php Le drapeau $recursive Quote bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = FALSE [, resource $context ]]] ) 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