• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple File zip in CI

#1
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:


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:


Code:
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";
   $this->zip->download($filename);
}
Reply

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

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.