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++ - Convert big endian to little endian when reading from a binary file -

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

unicode - Are email addresses allowed to contain non-alphanumeric characters? -