It only shows if a problem has occurred. This will not show a message for the file saved.
try {
$writer->save($filename);
echo "File successfully saved";
} catch (Exception $e) {
echo 'ERROR: ', $e->getMessage();
die();
}
I want to display a success message.
source
share