I must be missing something simple here. I am using beforeSave in CakePHP to run some tests on the data before its saved. If beforeSave returns true, the data is saved and the user is redirected. If beforeSave returns false, I would like to NOT redirect the user - but rather just display a Session->setFlash with instructions on how to correct the problem.
This works the first time "Submit" is clicked, however subsequent Submissions do nothing. If I refresh the page it works fine, if I add a redirect back to the same page on the Controller it works, but I'd like to avoid emptying all the entries on the form (or having to devise some other way to fill it back out for them).
Is there some hidden variable, Session ID or something that must be reset?
Thanks!