Code: Select all
header('Content-Disposition: attachment');
Moderators: ooffick, General Support Moderators
Post by kennm » Fri Mar 01, 2024 2:33 pm
Code: Select all
header('Content-Disposition: attachment');
Post by ceford » Sat Mar 02, 2024 5:57 am
Code: Select all
$app->setHeader('Content-Type', 'text/csv; charset=utf-8', true);
$app->setHeader('Content-disposition', 'attachment; filename="' . $filename . '-' . $date . '.csv"', true);
$app->setHeader('Cache-Control', 'no-cache', true);
$app->sendHeaders();
Return to “Joomla! 4.x Coding”
© 2005 - 2024 Open Source Matters, Inc. All Rights Reserved.