I am trying to pass $namefile into a path download. how to do it?
public function download($namefile)
{
return $this->response->download("pathfile/[here]", null);
}
i'm using label to download the file
<label>File <a href="/suratmasuk/download/<?= $surat['file']; ?>"><sup>Download</sup></a></label>