Hello All,
I am learning the PHP MVC pattern for my backend implementation. Looking at this excellent example:
Implementing MVC in PHP: The Controller
http://onlamp.com/pub/a/php/2005/11/03/mvc%5Fcontroller.html
I feel comfortable with the execution flow in a GET. But there is no mentioning of what happens in a POST. What would the typical controller code for the POST do? I wonder if I am misunderstanding something obvious here, since I can't find similar situations in previous SO posts or Google.
For example: An app to manage persons,(name, last, age) wants to add a record to db when a POST hits the controller. What happens next? My guess is that the 'View' is not used at all, or maybe for confirmation? Is there just a call from the controller to a model class that adds a record to db? Or do I skip the controller altogether for a POST and go directly to an "add record" script?
Is there any available example?
Thanks in advance, Ari