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.


  • tattoo ambigram

    I read this article fully about the resemblance of most recent and
    previous technologies, it’s awesome article.

  • webpage

    After checking out a few of the blog posts on your blog, I
    honestly like your technique of writing a blog. I saved it to my bookmark
    site list and will be checking back soon.

  • superuser

    Your style is really unique in comparison to other folks I have read stuff from.
    Thank you for posting when you have the opportunity, Guess I’ll just book mark this web

Leave a Reply

Your email address will not be published.