php - Contact page MVC workflow -


all previous projects have had workflow on contact pages

  1. user submits form
  2. controller gets $_post details
  3. controller validates details (and sets error messages if necessary)
  4. controller sends email
  5. controller redirects thanks page

is standard workflow?

i used validate in controllers, , did more reading , recommended against it. therefore, should send $_post details helper type object , let work (validation/sending)?

in controller should check validation. main validation should on model before operations db.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -