Welcome Guest, Not a member yet? Register   Sign In
Multiple File zip in CI

I have multiple image in folder,And i get it on Href button so how to zip that file in codeingiter

HERE is MY View Code:

<a href="<?php echo base_url()."index.php/itr1/download/".$key['pan_card']."/".$key['previous_itr'] ?>" name="images">Downalod All Attachments</a>

Here my Controller:

public function download()
   // File path
   $id =  $this->uri->segment(3);
   $id1 =  $this->uri->segment(4);

   $filepath1 = FCPATH.'upload/'.$id;
   $filepath2 = FCPATH.'upload/'.$id1;

   $filename = "backup.zip";

CodeIgniter User Guide - Zip Encoding Class
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB