if(!empty($this->request->post['product_category'])) {
$product_image = $this->model_account_download->getImage($this->request->post['product_category']);
foreach ($product_image as $image) {
$fileName = basename($image['image']);
$filePath = 'image/' . $fileName;
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=$fileName");
readfile($filePath);
}
}
Так получается выгрузить только одну картинку, если возможность выгрузить все картинки zip архивом ? или что бы выгружались все картинки ?