Hello,
I have a response formatter with a property: filename.
Can I set that property from controller?
config/web.php:
...
'response' => [
'formatters' => [
'pdf' => [
'class' => 'boundstate\htmlconverter\PdfResponseFormatter',
// Set a filename to download the response as an attachments (instead of displaying in browser)
'filename' => 'attachment.pdf'
],
],
],
...
Can I set the filename from controller?