Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Zip Component in CakePHP-Add files in Zip


Hello Friends,

Today i have implemented a Zip functionality in CakePHP. If you want to create an archive file consists of some files to give a download Zip file option to user than i might help you to show the steps. Below are the steps how to zip all files and save it to some folder.


First you can download the file given in link and place above file in components directory in your app/controller folder. Now you can call the function addFile for adding files in zip. Once you will call this function it will read all data from src_file. Now you can save those data to Zip file by calling saveZip function.

If you find any problem in this than let me know by comment.


Leave a Reply

Your email address will not be published.