What is controller in MVC

2 points by jack83 ↗ HN
Hello,

What is the real function of a controller in a MVC architecture ?

Thank you for your advices.

2 comments

[ 5.3 ms ] story [ 25.4 ms ] thread
The controller generally accepts requests and fires an action. i.e. You may request index.php/admin/users/view/id/123

Your controller in the above example is Users firing the view Action it got from the request (usually another object).