[2/3] Symfony 3 For Beginners - Part 2
683 views
Feb 14, 2023
Towards the end of the previous video we had extracted out the form submission logic from our Contact Form `indexAction` and placed it inside a new action, the `handleFormSubmissionAction`. The idea here is to separate out the concern of showing the form to the end user from the concern of handling their submitted form data. Now, in truth this setup is less prevalent in Symfony-land. Typically you will see both the display and processing of a form handled in the same action. From experience, I believe this is because separating these two concerns in Symfony is more difficult than going with the "all-in-one" approach. This may just be my experience. Find this full write up and the full course at CodeReviewVideos.com