I need to download all file in a directory under the webroot folder in one button…what will be the controller and view with get method…
this is the controller to download single file:
public function download($file_name){
$path = WWW_ROOT.“OA_USER_FILES\download_file”. DS . $file_name;
$this->response->file($path, array(
‘download’ => true,
‘name’ => $file_name
));
}