I have a controller function that's using $this->render('action') to
render a view that creates a CSV file after submitting some info in a
form.
What I want to do is redirect the user after the CSV file is
downloaded. So the steps would be:
1. User submits data.
2. Queries are run and a CSV file is rendered and saved by the user.
3. Controller redirects to another view.
If I do a simple redirect using $this->redirect('controller/action'),
the CSV file is not rendered, even though render() is called first. If
I don't redirect, the CSV is successfully rendered, but the user is
left with a form that is still filled-in. I'd like to redirect to
another view and display a "Success" flash message once the CSV is
rendered.
Any tips?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---