Hi guys,
Thanks for your responses!
I've decided I'll create some custom exceptions for my project; it
does seem like the cleanest solution.
I am however curious as to why exactly I am seeing the behavior I am
seeing - maybe someone can shed some light on this.
The redirect('thanks'); call throws an sfStopException. Shouldn't
this stop exception get caught higher up in the stack as the redirect
gets executed? Why is my catch block catching it to begin with? The
other weird part is that my catch block contains two statements - the
first adds an error to the user's flash and the second redirects to
the homepage. The error gets added but the homepage redirect never
happens. Instead I am redirected to my thanks action, and its code
gets executed as if nothing went wrong, though it contains the flash
error.
This seems off to me. Shouldn't it either complete the entire catch
block and thus I end up on 'homepage' with a flash error? Or skip the
entire catch block altogether and stop this action's execution at
redirect('thanks') ?
Thanks,
Gabriel Comeau
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en