Jump to content

[Custom Module] Save temporary file


Elby

Recommended Posts

Hello!

 

I am just trying to develop my first simple module to understand Prestashop better.

 

What I am trying now is to create a QR-Code PNG which should be saved to some temporary folder for download.

 

My problem now is that my PNG file is created but not saved into any specified folder I tried.

I changed already folder permissions to 777 but that didnt help.

Tried with very basic PHP file manipulation fopen/fwrite/fclose but still no success.

 

Can someone please explain me the general procedure of dynamically open, change and save files within Prestashop modules?

 

Any help is truly appreciated!

Thanks,

Elby

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...