i have my function that generate my PDF, this works fine (the function is in my block).
After that, i want to show the window with this (this is in my controller)
ob_start(); header("Content-Length: " . filesize ( $fullUrl ) ); header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=".basename($fullUrl)); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); ob_clean(); flush(); readfile($fullUrl);
but readfile doesn't do anything. Why ?