getValueFromFile (__DIR__ .'/invoice', ['invoice' => (int) $_GET['invoice']]); if (!$pdfPath) throw new Lib\UserException (s('Invoice id not found')); Util::printFile ($pdfPath); } }