[英]How to pass variable into file path ini php
我正在嘗試將 $namefile 傳遞到路徑下載中。 怎么做?
public function download($namefile)
{
return $this->response->download("pathfile/[here]", null);
}
我正在使用 label 下載文件
<label>File <a href="/suratmasuk/download/<?= $surat['file']; ?>"><sup>Download</sup></a></label>
您是否嘗試使用按鈕下載文件? 如果是,為什么不在按鈕 href 中使用<?php base_url()/[file location]?>
?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.