I have been asked in an interview: Can we implement MVC architecture without having a model? If yes - how?
4 Answers
Model View Controller architecture without a model? That would be just View Controller wouldn't it? I guess a static website wouldn't need a model
4 Comments
Don Roby
A static website might not need a controller either.
Tae-Sung Shin
Isn't it just view? Why would one need controller without model?
Martin Booth
If you were still using asp.net-mvc (like the tag) you'd still need the controller and the view
John Weisz
What if that website has both dynamic and static content, both types routed through a front controller? In case of a request for dynamic content (search, news, etc.) a model will be needed. In case of a request for static content (tos, privacy policy), only a view is needed.