Return $filename with temp directory and delete file
protected static getOutputPath ( $filename ) : string | ||
$filename | ||
Результат | string | path of file in temp directory |
public function sendToDisk($filename) { $filename = ReportRenderer::makeFilenameWithExtension($filename, self::PDF_CONTENT_TYPE); $outputFilename = ReportRenderer::getOutputPath($filename); $this->TCPDF->Output($outputFilename, 'F'); return $outputFilename; }