Contact page MVC workflow
Posted
by
alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-09-22T05:28:24Z
Indexed on
2011/03/14
0:09 UTC
Read the original article
Hit count: 156
All my previous projects have had this workflow on Contact pages
- User submits form
- Controller gets
$_POST
details - Controller validates details (and sets error messages if necessary)
- Controller sends email
- Controller redirects to thanks page
Is this the standard workflow?
I used to validate everything in controllers, and then did some more reading and they recommended against it. Therefore, should I send the $_POST
details to a helper type object and let it do all the work (validation/sending)?
© Stack Overflow or respective owner