TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What is controller in MVC

2 pointsby jack83over 14 years ago
Hello,<p>What is the real function of a controller in a MVC architecture ?<p>Thank you for your advices.

2 comments

Kudoseover 14 years ago
The controller generally accepts requests and fires an action. i.e. You may request index.php/admin/users/view/id/123<p>Your controller in the above example is Users firing the view Action it got from the request (usually another object).
Kudoseover 14 years ago
Sorry for the double comment ... you can see the controller in action at <a href="http://code.google.com/p/sharpy/" rel="nofollow">http://code.google.com/p/sharpy/</a> ... which is my less than a week old PHP framework.