1
> return $this->_prepareDownloadResponse(
> 'invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s').'.pdf',
> $pdf->render(), 'application/pdf'
是否仍然可以在_prepareDownloadResponse之後強制頁面重定向或刷新?Magento發佈後重定向_prepareDownloadResponse
我不確定這是否會起作用;刪除返回並添加此行$ this - > _ prepareDownloadResponse .......... return $ this - > _ redirect('*/* /'); – Aboodred1 2012-01-30 20:46:42
我在想之前就試過了。問題在於由_prepareDownloadResponse – 2012-02-01 21:24:50
確認生成的下載(已經)連接和響應代碼的結束。不工作,任何其他好主意? – 2012-02-05 13:13:49